dict['age' update existing entry dict['school'"dps school"add new entry print "dict['age']"dict['age'print "dict['school']"dict['school'when the above code is executedit produces the following resultdict['age'] dict['school']dps school delete dictionary elements you can either remove individual dictionary elements or clear the entire contents of dictionary you can also delete entire dictionary in single operation to explicitly remove an entire dictionaryjust use the del statement dict {'name''zara''age' 'class''first'del dict['name']remove entry with key 'namedict clear()remove all entries in dict del dict delete entire dictionary print "dict['age']"dict['age'print "dict['school']"dict['school'this produces the following result notethat an exception is raised because after del dict dictionary does not exist anymore dict['age']traceback (most recent call last)file "test py"line in print "dict['age']"dict['age']typeerror'typeobject is unsubscriptable