Challenge: Contact book
Learn how to create a mini contact book by using a Python dictionary to store contacts and their phone numbers. Understand how to add entries and retrieve data with friendly output statements.
We'll cover the following...
We'll cover the following...
Create a mini contact book using a dictionary:
Create a dictionary called
contacts.Add at least three contacts (e.g., family, friends, places) as keys and their phone numbers as values.
Use a
print()statement to display one of the contact’s phone numbers in a friendly sentence.