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
Posted By - | Karan Gupta |
|
Posted On - | Tuesday, April 16, 2019 |
|
Updated On - | Wednesday, May 15, 2019 |