Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 2

8 bytes removed, 13:22, 1 August 2017
PART 1 - Using IF Statements
:::'''Sample run 1:'''<source>
run ./lab2d.py Jon 20
Hi Jon, you are 20 years old.
</source>
:::'''Sample run 2:'''<source>
run ./lab2d.py Jen 25
Hi Jen, you are 25 years old.
</source>
:::'''Sample run 3:'''<source>
run ./lab2d.py
Usage: lab2d.py name age
</source>
:::'''Sample run 4:'''<source>
run ./lab2d.py Jon is 20
Usage: lab2d.py name age
</source>