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

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

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!