emptyDictionary = {}print emptyDictionarygrades = { "A": 87, "B": 76, "C": 92, "D": 89 }print "nAll grades:", gradesprint grades[ "A" ]grades[ "A" ] = 90print "A's new grade:", grades[ "A" ]# add to an existing dictionarygrades[ "B" ] = 93print "nDictionary grades after modification:"print grades# delete entry from dictionarydel grades[ "C" ]print "nDictionary grades after deletion:"print grades
Name (required)
email (will not be published) (required)
Website