Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 2

27 bytes added, 12:21, 26 May 2017
PART 2 - Understanding WHILE Loops with Arguments
:::'''Additional Input / Output / Processing Requirements'''
:::*The script should have a '''Shebang line''':::*The script should '''import sys''':::*The script should use a variable named timer with the value of '''int(sys.argv[1]) '''
:::*The script should have a while loop that repeats until timer equals 0
:::*The script should print the EXACT OUTPUT as shown
:::3. Before proceeding, make certain that you identify any and all errors in "lab2d.py". When the check script tells you everything is "ok", you may procede to the next step.
<br><br>
= LAB 2 SIGN-OFF (SHOW INSTRUCTOR) =
13,420
edits