A person can obtain their driver's license if they are of legal age and have official identification. Write a Python program that reads a person's age and if they have (y/n) official identification. Output must show whether you can get your license or you can't get it. Tickets The program will ask for the age of the person, it must be a positive integer. Departures Add the necessary code for the program to print License Granted if you are 18 or older and have official ID, or print You Don't Meet Requirements if you don't meet the license requirements. If the age is negative or the user entered any character other than son when you ask for the ID, it should show the message Wrong Answer The output of the program should be exactly as follows: Example 1 Enter your age: 19 Do you have official identification? (y/n): y License procedure granted Example 2 Enter your age: 19 Do you have official identification? (y/n): nYou do not meet requirements Example 3 Enter your age: 12You do not meet requirements Example 4 Enter your age: 20 Do you have official identification? (y/n): g Incorrect answer
A person can obtain their driver's license if they are of legal age and have official identification.
Write a Python program that reads a person's age and if they have (y/n) official identification.
Output must show whether you can get your license or you can't get it.
Tickets
The program will ask for the age of the person, it must be a positive integer.
Departures
Add the necessary code for the program to print License Granted if you are 18 or older and have official ID, or print You Don't Meet Requirements if you don't meet the license requirements. If the age is negative or the user entered any character other than son when you ask for the ID, it should show the message Wrong Answer
The output of the program should be exactly as follows:
Example 1
Enter your age: 19 Do you have official identification? (y/n): y License procedure granted
Example 2
Enter your age: 19 Do you have official identification? (y/n): nYou do not meet requirements
Example 3
Enter your age: 12You do not meet requirements
Example 4
Enter your age: 20 Do you have official identification? (y/n): g Incorrect answer

Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 5 images









