python raise runtimeerror example
Example 1: exception pyton print
except Exception as e: print(e)
Example 2: raise python
# Raise is used to cause an error
raise(Exception("Put whatever you want here!"))
raise(TypeError)
except Exception as e: print(e)
# Raise is used to cause an error
raise(Exception("Put whatever you want here!"))
raise(TypeError)