venture of iit bombay vjti alumni keys are unique within dictionary while values may not be the values of dictionary can be of any typebut the keys must be of an immutable data type such as stringsnumbersor tuples accessing values in dictionary to access dictionary elementsyou can use the familiar square brackets along with the key to obtain its value following is simple example #!/usr/bin/python dict {'name''zara''age' 'class''first'print "dict['name']"dict['name'print "dict['age']"dict['age'when the above code is executedit produces the following result dict['name']zara dict['age'] if we attempt to access data item with keywhich is not part of the dictionarywe get an error as follows #!/usr/bin/python