Menu iconMenu iconPython & SQL Bible
Python & SQL Bible

Chapter 22 - Appendix C: Python Cheat Sheet

Exception Handling

try:
    print(x)
except:
    print("An exception occurred")

Exception Handling

try:
    print(x)
except:
    print("An exception occurred")

Exception Handling

try:
    print(x)
except:
    print("An exception occurred")

Exception Handling

try:
    print(x)
except:
    print("An exception occurred")