Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 2

764 bytes added, 09:48, 26 May 2017
INVESTIGATION 3: USING LOOP STATEMENTS
</source>
:#You are NOT required to create a Python script for this section or run the checking script. Proceed to INVESTIGATION 3.
<br><br>
= INVESTIGATION 3: USING LOOP STATEMENTS =
:In programming loops 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 sequences 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 code that are repeated multiple times control flow statements by learning how to repeat a command or until a condition is satisfiedseries of commands. Although, you will be learning other scripting techniques, the ability to know how to use variables, LOGIC 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 - WHILE Loops ==
13,420
edits