Changes

Jump to: navigation, search

OPS435 Python Lab 2

2 bytes removed, 19:01, 25 May 2017
PART 1 - Using the IF Statement
In computer programming 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 the IF StatementStatements ==
Indentation means to start a line with spaces or tabs before your text. In Python, indentation can control how the program itself runs. From now on be very careful and consistent in the indetation that you make. Using indentation you can choose what code runs as part of the if statement and what code runs as part of the main program.
13,420
edits

Navigation menu