chatnoir
0
Q:

python undefined

# 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
5
variable = None
0

New to Communities?

Join the community