0
Any one correct my Code
age = input() if age >=12: print("You are child") else: print("You are not child")
7 Answers
+ 3
age = int(input("How old are you?: "))
if age <= 12:
print("You are a child")
else:
print("You are not a child")
+ 1
age = int(input())
if age >=12:
print("You are child")
else:
print("You are not child")
You have to cast your input to an integer
+ 1
i've just edited my post. give it a just another try ;)
0
Not working bro
0
age = int(input())
if age <=12:
print("You are child")
else if:
age>=25:
print("You are Young")
how is that?
0
http://www.sololearn.com/app/JUMP_LINK__&&__python__&&__JUMP_LINK/playground/cS7gICykuRQv/
refer above code,
i can see, your code is not properly indented, that is the only problem.
0
age = int(input())
if age <=12:
print("You are child")
elif age >= 25:
print("You are Young")
try this....