Changes

Jump to: navigation, search

OPS435 Python Lab 2

6 bytes added, 14:18, 1 August 2017
PART 3 - Combining WHILE loops with IF statements
:::'''Sample run 1:'''<source>
run ./lab2g.py 5
5
4
:::'''Sample run 2:'''<source>
run ./lab2g.py 2
2
1
:::'''Sample run 3:'''<source>
run ./lab2g.py
3
2
blast off!
</source>
:::3. Download the check script and check your work. Enter the following commands from the bash shell.<sourcelang="bash">
cd ~/ops435/lab2/
pwd #confirm that you are in the right directory

Navigation menu