Skip to content

Instantly share code, notes, and snippets.

@shifatul-i
Last active October 3, 2019 20:00
Show Gist options
  • Save shifatul-i/74721317a0c12286e04c87e2e8258c72 to your computer and use it in GitHub Desktop.
Save shifatul-i/74721317a0c12286e04c87e2e8258c72 to your computer and use it in GitHub Desktop.
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