Changes

Jump to: navigation, search

OPS435 Python Lab 2

122 bytes added, 08:44, 26 May 2017
PART 1 - Using IF Statements
sys.exit()
</source>:#What happened? This if IF statement means: IF the number of arguments(one) is NOT EQUAL to ten, then the condition is True. These can get a little confusingIt is HIGHLY recommended to experiment by issuing different test conditions using the IF statement, until you become more familiar with it, try experimenting and move on when readyprior to proceeding with this lab.    NOTE:#If you are running this in ipython3, the number of arguments will be always be '1'. This number will always be one higher than the actual number of arguments entered. This is because it also counts the script name as a argument.   
''' Practice Using If Statements '''
13,420
edits

Navigation menu