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