Challenge: Contact book
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.
Similar Problems
Quiz: Choose Your Own Adventure
Challenge: Add Layers to Your Adventure
Teach Your Code to Remember Lots of Things!
Quiz: Teach Your Code to Remember Lots of Things!
Challenge: Teach Your Code to Remember Lots of Things!
Think in Tables
Quiz: Think in Tables
Challenge: Class Grades
Talk to Files
Quiz: Read and Write Text Files
Challenge: Contact book
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.
Similar Problems
Quiz: Choose Your Own Adventure
Challenge: Add Layers to Your Adventure
Teach Your Code to Remember Lots of Things!
Quiz: Teach Your Code to Remember Lots of Things!
Challenge: Teach Your Code to Remember Lots of Things!
Think in Tables
Quiz: Think in Tables
Challenge: Class Grades
Talk to Files
Quiz: Read and Write Text Files