Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 2

6 bytes added, 13:41, 1 August 2017
INVESTIGATION 3: USING LOOP STATEMENTS
:In the first two labs, you have been exposed to tools and methods to write powerful Python scripts. In Lab1, this included using using variables. In Lab 2 you learned how to input variables by either prompting the user for input or using data that are arguments containing within a Python script that you run. You also learned about LOGIC control-flow statements in order to make the Python script behave differently based on differing input.
:You will start to learn about the second major category of control flow statements by learning how to repeat a command or a series of commands. Although, you will be learning other scripting techniques, the ability to know how to use variables, LOGIC CONDITIONAL and LOOPING control-flow statements will allow you to create useful and powerful programs to assist you when managing your computer system (including virtual machines).
== PART 1 - Understanding WHILE Loops ==