demo_ref_keyword_elif.py:
for i in range(-5, 5): if i > 0: print("YES") elif i == 0: print("WHATEVER") else: print("NO")
➜ begtut>python demo_keyword_elif.py
NO
NO
NO
NO
NO
WHATEVER
YES
YES
YES
YES