Write a program to enter the age and display the message stating the person to apply for a driving license
Answers
Answered by
1
Answer:
name = input("Enter your name :- ")
age = int(input ("Enter your age :- "))
if age < 18 :
print("Your are not eligible to apply for a driving license ")
else :
print("Your are eligible to apply for a driving license ")
Output :-
Enter your name :- Pathwalla
Enter your age :- 16
Your are not eligible to apply for a driving license
>>>
Enter your name :- portalexpress
Enter your age :- 21
Your are eligible to apply for a driving license
>>>
Similar questions