how to print an exception in python code example Example: exception pyton print except Exception as e: print(e)