A dictionary plus a function
Build the smallest useful app: a phone book you can look names up in.
Build it yourself — nothing is given this time.
contacts— a dictionary with these three entries, added in this order:Ada→555-0101,Grace→555-0102,Katherine→555-0103- a function
lookup(name)that returns the phone number, orUnknownwhen the name is not in the book - a loop that prints every contact, one per line, as
Ada: 555-0101
Then print the result of lookup("Ada") and the result of lookup("Alan").