try except loop python return error code example Example: exception pyton print except Exception as e: print(e)