2.DrivingLisence.py

 age_list = [14,15,16,17,18,19,20,21]

#print(age_list)

for i in range(22,101):
age_list.append(i)
#print(age_list)
candidate_age = int(input("Enter your age here : "))
if candidate_age<18:
print("Not Eligible for Driving License")
elif candidate_age==18:
print("Apply after Drive Test is over")
elif candidate_age not in age_list:
print("Invalid Age")
else:print("Eligible for License")

Comments

Popular posts from this blog

3.FaulyCalculator.py

11.Snake Water Gun Game.py

15.PyStopWatch.py