demo_if_else.py:
a = 200 b = 33 if b > a: print("b is greater than a") elif a == b: print("a and b are equal") else: print("a is greater than b")
➜ begtut>python demo_if_else.py
a is greater than b