else statement complements the
if statement. An
else pair says: “If this expression is true, run this indented code block; otherwise, run this code after the else statement.”
else doesn’t depend on an expression. For example:
if 8 > 9: print "I don't get printed!" else: print "I get printed!"
else statements to the right. Note the indentation for each line!
Take this course for free