If a dictionary contains mutable objects or objects of custom classes (say a queryset, or a even a DateTime), then will calling clear() on the dictionary delet
the del command delete the reference of the particular item in the list, the clear command clear all the key value pairs in a go so the functionality is same they both dereference and rest task of removing it from memory is done by the garbage collector