What do you want to save?
Add Code snippet
New code examples
-
Python 2021-11-22 03:13:14
python exception list
AssertionError #Raised when assert statement fails. AttributeError #Raised when attribute assignment or reference fails. EOFError #Raised when the input() functions hits end-of-file condition. FloatingPointError #Raised when a floating point opera... Add solution -
Python 2021-11-11 01:22:11
python global import
>>> math Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'math' is not defined >>> def f(): ... global math ... import math ... >>> f() >>> math <... Add solution -
Python 2021-11-10 01:04:13
exception types python
AssertionError #Raised when assert statement fails. AttributeError #Raised when attribute assignment or reference fails. EOFError #Raised when the input() functions hits end-of-file condition. FloatingPointError #Raised when a floating point opera... Add solution -
Python 2021-11-02 19:39:12
python undefine variable
# Basic syntax: del variable # Example usage: variable = 42 print(variable) --> 42 del variable print(variable) --> NameError: name 'variable' is not defined # Note, this error is what we expect now that the variable has been # deleted Add solution