except e as error code example Example 1: exception pyton print except Exception as e: print(e) Example 2: try pass python except: pass