Search⌘ K
AI Features

Challenge: Contact book

Explore how to build a simple contact book in Python using dictionaries. Learn to add multiple contacts with phone numbers and display information interactively. This lesson helps you understand how to store and retrieve data in reusable structures for practical applications.

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.

Python
# Write your code here.