elif statement

Lesson Progress
0% Complete

Extending the previous example, here we are checking both ways, using the else statement as well.

a = 33
b = 200
if b > a:
   print("b is greater than a")
else:
  print(“a is greater than b”)