Question: Function is Older that takes two dates (each date is a 3-int tuple dd, mm, yyyy) and evaluates to true or false. It evaluates to
Function is Older that takes two dates (each date is a 3-int tuple dd, mm, yyyy) and evaluates to true or false. It evaluates to true if the first argument is a date that comes before the second argument (e.g. 30/3/2012 comes before 1/4/2012, hence a person born on 30/3/2012 is older). (If two dates are the same, the result is false.). Assume the user of your function will enter valid input. Think about how you can use relational operators on entire tuples to simplify processing instead of writing nested ifs
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
