How to make error in python code example Example 1: throwing an exception python raise Exception("message") Example 2: try pass python except: pass