+ 3
Help, please
Where is problem? I enter any number it outputs "You are child". Why? Can you help please guys. https://code.sololearn.com/cS6CXDIBSfwT/?ref=app
18 Antworten
+ 10
Merjen you have to use and operator instead of bitwise and
https://code.sololearn.com/c9oOMfGekHdT/?ref=app
+ 3
Use operater instead
+ 2
GAWEN STEASY thank you very much
+ 2
Now it's working correctly.
+ 2
print("Welcome to Sololearn")
age=int(input("enter your age: "));
if age==7 and age<=12:
print("You are child")
elif age>12 and age<=19:
print("You are teenager")
elif age>19 and age<=30:
print("You are young adult")
elif age>30 and age<=49:
print("You are adult")
elif age<=59:
print("You are middle-aged")
else :
print("You are old")
print("WOOW!!!")
print("Cool")
print("Even you are 59+ you are learning programming")
print("I am proud of you")
print("Keep going")
0
Yeap
0
It's solved
0
But still thank you for this option too
0
Nothing
0
Thanks
0
It's is working good
0
Yeah
0
Please talk in English
0
Omg we aren't here to argue
0
We are here to learn something