demo_ref_keyword_raise.py:
x = -1 if x < 0: raise Exception("Sorry, no numbers below zero")
➜ begtut>python demo_keyword_raise.py
Traceback (most recent call last):
File "demo_ref_keyword_raise.py", line 4, in <module>
raise Exception("Sorry, no numbers below zero")
Exception: Sorry, no numbers below zero