Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 2

No change in size, 18:13, 25 May 2017
PART 2 - Arguments
:::*The script should store the values in the correct variables (including case sensitivity)
:::*The script should print the EXACT OUTPUT as shown (including case sensitivity)
 
:::'''Sample run 1:'''<source>
run lab2c.py Jon 20
run lab2c.py Jen 25
Hi Jen, you are 25 years old.
</source>:::2. This final sample run will give us a error. This is important to see this, as we will fix it in the next section. This error happens if you run the script without any arguments. Since we still try to use them. Lets move forward and leave this error, until we have the right tools to fix it.:::'''Sample run 3:'''<source>
run lab2c.py
---------------------------------------------------------------------------
13,420
edits