Last active
October 3, 2019 20:00
-
-
Save shifatul-i/74721317a0c12286e04c87e2e8258c72 to your computer and use it in GitHub Desktop.
This file contains 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 = {} | |
phonebook["John"] = 938477566 | |
phonebook["Jack"] = 938377264 | |
phonebook["Jill"] = 947662781 | |
print(phonebook) | |
print() | |
phonebook = { | |
"John" : "3-3-3", | |
"Jack" : "4-4-4", | |
"Jill" : "5-5-5" | |
} | |
print(phonebook) | |
print() | |
phonebook = {"John" : 999, "Jack" : 777, "Jill" : 444} | |
for name, number in phonebook.items(): | |
print("Phone number of {} is {}".format(name, number)) | |
print() | |
del phonebook["John"] | |
print(phonebook) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment