demo_ref_keyword_else2.py:
x = 5 try: x > 10 except: print("Something went wrong") else: print("The 'Try' code was executed without raising any errors!")
➜ begtut>python demo_keyword_else2.py
The 'Try' code was executed without raising any errors!