how to show error base on condition python code example Example: exception pyton print except Exception as e: print(e)