Question: Use the Design Function to write a function called query which consumes a birthday dictionary and name (string). The birthday dictionary has names (string) as

Use the Design Function to write a function called query which consumes a birthday dictionary and name (string). The birthday dictionary has names (string) as keys and birthdays (string) as values. Your function query should use the birthday dictionary to look up the name and return the birthday string associated with that name. If the name doesn't exist in the dictionary return "I don't know For example: Test birthdays print. (query (birthdaya,"A11iaon")) birthdays"Allison" "08/11/1952" print (query (birthdays, "Allison") Result I don't know 08/11/1952
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
