d2 = {'spam': 2, 'ham': 1, 'eggs': 3} # Make a dictionaryprint d2.get('spam' ) # A key that is thereprint d2.get('toast') # A key that is missingprint d2.get('toast', 88)
Name (required)
email (will not be published) (required)
Website