thisdict = { "brand": "Ford", "model": "Mustang", "year": 1964 } thisdict.clear()
dict.clear()
thisdict = { "brand": "Ford", "model": "Mustang", "year": 1964 } del thisdict print(thisdict) #this will cause an error because "thisdict" no longer exists. dict.clear() # also will delete thr dictionary inside you are using the clear method.
dict_name.clear()