Check ahe is 18 or not using python

technical talkiess
0

 # excercise in python

print("Please enter your age please !")

age = int(input())

if age > 18 and age <100:

    print("You can drive")

elif age == 18 and age > 7:

    print("Please come manully we decide the you can drive or not")

elif age > 100:

    print("Please enter valid age ")

else:

    print("You can'

t drive")


Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)