Age Detector exercise in python

 # MAKE A PROGRAM WHICH TELLS THE USER HE IS ELIGIBEL OR NOT TO DRIVE


print("Welcome to Remsters drivinig center.")
print("Let check your are eligibel or not to drive.")
username = str(input("Enter your name: "))
userage = int(input("Enter you age: "))
if userage > 18 and userage < 100:
    print(username,"Congo Your are eligibel for driving car....")
elif userage < 18 : 
    print(username,"Sorry You are not eligibe for driving the car....")
elif userage == 18 :
    print(username,"We are unable to decide that you eligebel for drive or not....")
elif userage > 120 :
    print(username,"Enter Invalid Age")
else :
    print("Try again later")

Comments