Question: It is Python Question 2 In this question, you'll write basic functions to return the desired output, or preform a desired action. Part 2.A Write

It is Python Question 2 In this question, you'll write basic functionsIt is Python

Question 2 In this question, you'll write basic functions to return the desired output, or preform a desired action. Part 2.A Write a function called who_is_younger that compares the age of two people and returns the name of whoever is younger. The function should find Simba is younger than Mufasa if Simba's birthday comes before Mufasa's, and Mufasa is younger if Mufasa's birthday comes before Simba's. The function should take two tuples as its arguments, each tuple containing a string name and a string date of birth in this format "1998-07-23". If they have the same birthday, the function should return "Same Age". For example the function call of who_is_younger(("Mufasa", "1998-01-04"),("Simba", "1998-05-12")) should retrun "Simba". Graded

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!