Booleans and Conditional Statements

Comparison/Relational Operators

Boolean Operators

if Statements

if EXPRESSION:
   statement1
   statement2

Where EXPRESSION can be anything that evaluates to a Boolean. For example:

x = 10
if x < 100:
   print("X is small!")

if/else Statements

if/elif statements

if/elif/else Statements

Sequential if Statements

Nested if

x = 50
if x < 20:
   print("x is tiny!")
   if x < 100:
       print("x is small!")

What will be printed?

Inappropriate Use of Nesting

Comparing to Booleans