Changes

Jump to: navigation, search

OPS435 Python Lab 2

10 bytes removed, 15:57, 15 September 2017
PART 1 - Using IF Statements
:::*The script should have a '''Shebang line'''
:::*The script should '''import sys'''
:::*The script should print a '''usage message''' if zero arguments present, or likewise, if not exactly 2 arguments are NOT provided when running the script<br>(NOTE: Use '''sys.argv[0]''' value in this message in case you rename the script at a later date!)
:::*The script should exit without attempting to do any more work if exactly 2 arguments are not provided when running script
:::*The script should use a variable called '''name'''

Navigation menu