Question: please use python Write a program that asks the user for their age and compare it to the legal driving age of sixteen. If the
Write a program that asks the user for their age and compare it to the legal driving age of sixteen. If the user is sixteen or older, then the program should display "You are old enough to legally drive." If the use is under sixteen, the program should display "You are not old enough to legally drive." Constraints - Implement the program using a function called check_age, which takes age as its argument and returns true or false - Invoke this function from your main program Example Output What is your age? 15 You are not old enough to legally drive. Or What is your age? 35 You are old enough to legally drive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
