Question: Intro to Programming Exercise 2: Phonebook.py Create a dictionary called phonebook. Enter the following names and numbers into the dictionary: James: 555-1234, Kathleen: 555-5678, Ian:

Intro to Programming

Exercise 2: Phonebook.py

Create a dictionary called phonebook. Enter the following names and numbers into the dictionary:

James: 555-1234,

Kathleen: 555-5678,

Ian: 555-9123,

Stacey: 555-4457

Now create a list of names that includes all of the names from the dictionary and three names that are not in the dictionary.

Loop through the list of names.

If they are already in the phonebook, print a message displaying their name and phone number.

If they are not in the phonebook, print a message saying contact information needed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!