Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 2

183 bytes added, 11:02, 26 May 2017
PART 1 - Understanding WHILE Loops
</source>
:Now it's time to create a new script. You will be creating an entirely new Python script to use a WHILE loop as a determinant loop. This while loop will count down from 10, print each value as it counts down. When it gets to the end it will output 'blast off!' Refer to Sample Runs displayed below for exact prompt and output requirements.
:'''Practice Using a WHILE LoopPerform the following Instructions:''' :#Now it's time to create a new script. :*Make a new file called '''lab2e.py''', this script will contain a while WHILE loop. This while loop will count down from 10, print each value as it counts down. When it gets to the end it will output 'blast off!'.
::*The script should have a Shebang line
13,420
edits