13,420
edits
Changes
→INVESTIGATION 2: USING LOGIC STATEMENTS
python3 ./CheckLab2.py -f -v lab2c
</source>
:::4. Before proceeding, make certain that you identify any and all errors in '''lab2c.py'''. When the check script tells you everything is '''OK''', you may procede to the next step.
= INVESTIGATION 2: USING LOGIC STATEMENTS =
:In computer programming , control flow statement can be used to change the direction (flow) of a program. In this section, you will focus on LOGIC control flow statements that are used to change the way each script runs, based entirely on input (either user input, or command arguments). In this section, we will discuss several LOGIC control flow statements including: IF, IF/ELSE, IF/ELIF/ELSE. an "if statement" is a condition that executes different code based on whether the condition is True or False. In this section "if statements" will be used to change the way each script runs, based entirely on the output we provide.
== PART 1 - Using IF Statements ==