demo_set_del.py:
thisset = {"apple", "banana", "cherry"} del thisset print(thisset) #this will raise an error because the set no longer exists
C:\Users\My Name>python demo_set_del.py
Traceback (most recent call last):
File "demo_set_del.py", line 5, in <module>
print(thisset) #this will raise an error because the set no longer exists
NameError: name 'thisset' is not defined