Articles → Python → Del Method In Python For Deleting Module From Default Namespace
Del Method In Python For Deleting Module From Default Namespace
Purpose
Using Del For Variables
temp = "This is temp variable"
# Print
print(temp)
#Delete
del(temp)
# Print (This method will give error)
print(temp)
Output