Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 2

No change in size, 13:59, 1 August 2017
PART 2 - Using WHILE loops with script Arguments
:::3. Before proceeding, make certain that you identify any and all errors in '''lab2e.py'''. When the check script tells you everything is '''OK''', you may proceed to the next step.
== PART 2 - Using WHILE loops with script Arguments arguments ==
:You will now learn to make your Python scripts more flexible by using numbers as arguments to be used with WHILE loops. You will learn that arguments used in Python scripts are strings (not numbers) and therefore, cannot be used in Mathematical operations unless they are converted into numbers (like an integer). You will be learning how to use the int() function in order to convert a string into an integer.