Changes

Jump to: navigation, search

OPS435 Python Lab 2

67 bytes added, 10:05, 26 May 2017
PART 1 - Understanding WHILE Loops
:'''Perform the following Instructions:'''
::*#Make a new file called '''lab2e.py''', this script will contain a WHILE loop. :::'''Input / Output / Processing Requirements'''
::*The script should have a Shebang line
:::*The script should use a variable named timer with a value of 10:::*The script should have a while loop that repeats until timer equals 0:::*The script should print the EXACT OUTPUT as shown:::'''Sample run:'''<source>
run lab2e.py
10
blast off!
</source>
 
:::2. Download the check script and check your work. Enter the following commands from the bash shell.<source>
cd ~/ops435/lab2/
python3 ./CheckLab2.py -f -v lab2e
</source>
:::3. Before proceeding, make certain that you identify any and all errors in "lab2d'''lab2e.py"'''. When the check script tells you everything is "ok"'''OK''', you may procede proceed to the next step.
== PART 2 - WHILE Loops with Arguments ==
13,420
edits

Navigation menu