venture of iit bombay vjti alumni dict {'name''zara''age' 'class''first'print "dict['alice']"dict['alice'when the above code is executedit produces the following result dict['alice']traceback (most recent call last)file "test py"line in print "dict['alice']"dict['alice']keyerror'aliceupdating dictionary you can update dictionary by adding new entry or key-value pairmodifying an existing entryor deleting an existing entry as shown below in the simple example #!/usr/bin/python dict {'name''zara''age' 'class''first'dict['age' update existing entry dict['school'"dps school"add new entry