Date

Due: Monday, September 19, 11:00 AM

Write a program called phone_book.py that will read in 5 entries into a phone book dictionary. Then, prompt the user to find a number by a given name, and a name by a given number.

An example run of the program might look like this:

Add an entry to the phone book: Mark 434-982-2688
Add an entry to the phone book: Sally 434-893-5665
Add an entry to the phone book: Carl 804-889-4554
Add an entry to the phone book: Carol 804-327-2414
Add an entry to the phone book: Jackie 545-677-0984

Who do you want to call?: Sally
Sally's number is: 434-893-5665

Which number do you want to lookup?: 545-677-0984
That number belongs to: Jackie

Another run might look like:

Add an entry to the phone book: Mark 434-982-2688
Add an entry to the phone book: Sally 434-893-5665
Add an entry to the phone book: Carl 804-889-4554
Add an entry to the phone book: Carol 804-327-2414
Add an entry to the phone book: Jackie 545-677-0984

Who do you want to call?: Bob
That name is not in the phone book.

Which number do you want to lookup?: 111-111-1111
That number is not in the phone book.

Please match our prompts, etc, exactly. Your program should work for any names and phone numbers.

Submission: Please submit one .py file named phone_book.py to the POTD submission system at https://archimedes.cs.virginia.edu/cs1110/.