Question: As we already know from lab01, it is better to have drivers over 25 for renting a car. Unfortunately, your team is not settled
As we already know from lab01, it is better to have drivers over 25 for renting a car. Unfortunately, your team is not settled yet and you do not know whether you have such a driver. If you do not, you want to find a person whose age is closer to 25 without going strictly over it (can be equal). Write a function that takes two positive integers and returns whichever age closest to 25 without going strictly over. Return "we are good to go!" if they both go strictly over. def close_to_25 (agel, age2): 11 11 11 >>> close_to_25 (19, 21) 21 >>> close_to_25 (26, 21) 21 >>> close_to_25 (26, 27) 'we are good to go!' >>> close_to_25 (20, 25) 25 >>> close_to_25 (27, 25) 25 11 11 11
Step by Step Solution
3.47 Rating (150 Votes )
There are 3 Steps involved in it
Python program to create and test the function closeto25 def closeto25age1 ... View full answer
Get step-by-step solutions from verified subject matter experts
