Open main menu

CDOT Wiki β

Changes

OPS435 Python Lab 2

41 bytes removed, 13:04, 1 August 2017
PART 2 - Using IF/ELIF/ELSE Statements
#For the following examples, try changing the numbers in the variables to get different results.
#Create one or more new files for testing the following steps (you won't need to submit them).
#Let's perform an IF statement testing a condition of two variable values. In this case, if variable 'a' is greater than variable 'b', then print a message, if False, do nothing.#Modify your program to looks like this:<source>
a = 10
b = 15