Question: Problem 3 Complete the function below that takes a Python dictionary as an argument. Given a dictionary of the form: adict = {'name': 'Romeo Montague',

 Problem 3 Complete the function below that takes a Python dictionary

Problem 3 Complete the function below that takes a Python dictionary as an argument. Given a dictionary of the form: adict = {'name': 'Romeo Montague', 'age': 32, 'DOB': '01/21/1594"} the function should return the 'age' value and 'DOB' value as a single tuple. Example usage: get_age_and_dob (adict) should return (32, '01/21/1594') def get_age_and_dob(adict): return

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!