demo_if_else_short.py:
a = 2 b = 330 print("A") if a > b else print("B")
➜ begtut>python demo_if_else_short.py
B