demo_ref_keyword_else.py:
x = 2 if x > 3: print("YES") else: print("NO")
➜ begtut>python demo_keyword_else.py
NO