Last active
December 12, 2015 02:08
-
-
Save emerak/4696316 to your computer and use it in GitHub Desktop.
Dictionaries - LearnPython.org My answer to the excercise
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
phonebook = { | |
"John" : 938477566, | |
"Jack" : 938377264, | |
"Jill" : 947662781 | |
} | |
# write your code here | |
phonebook["Jake"] = 938273443 | |
phonebook.pop("Jill") | |
# testing code | |
if "Jake" in phonebook: | |
print "Jake is listed in the phonebook." | |
if "Jill" not in phonebook: | |
print "Jill is not listed in the phonebook." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment