Question: Write a Python function to determine if a person is old enough to drive. To be old enough to drive, the person must be at
Write a Python function to determine if a person is old enough to drive. To be old enough to drive, the person must be at least 17 years old. The function should return a message to the program that invoked it. The message will state whether the person is or is not old enough.
Write the program that asks the user to input the age of the applicant in years and then calls the function that will decide if the applicant is old enough to drive. The program will then print the message.
Show that your program logic is valid by running the program and entering an age of 6 years and then running the program again and entering an age of 17 years.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
