IT 116: Introduction to Scripting
Rules for Homework Scripts
If you fail to follow the rules below for homework scripts,
you will lose points.
- The filename of all scripts must have a .py extension
- All scripts must have a comment at the top that briefly describes what the
script does
- All comments must use the # symbol
- All scripts must run on the UMB Unix machines without error
- All variable names must be a good description of the values they contain
- Whenever input is needed from the keyboard, a meaningful prompt must be used
- All functions must have a comment that comes before the function header
and describes what the function does
- The comment must be immediately above the
function header with no blank line between them
- All function definitions must must appear at the top of the script
- The function body must contain no blank lines
- All functions definitions must have a blank line between them
- The code that runs the functions must appear at the bottom of the page
after all functions have been defined
- There must be a blank line between the last function definition and the code
that runs the function
- All scripts must have the
hashbang
as their first line with the address /usr/bin/python3
- All scripts must have permissions 755
- Any statement that could cause a runtime error should be placed
inside a
try/except
statement.