If else in python

technical talkiess
0

 var1 = 30

var2 = 45
# print("Enter the number which do you want to check50")
var3 = int(input())

# if else is the check the condition is true or false 

# if var3 > var2:
#     print("Greater")
# # elif check seconda condition if the first lader is not satisfy
# elif var3 == var2:
#     print("The number are equal")
# else:
#     print("Lesser")




# 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")





























Tags

Post a Comment

0Comments

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

Post a Comment (0)