+ 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

11th Jan 2020, 6:43 AM
Merjen Annadurdyýewa
18 Réponses
+ 10
Merjen you have to use and operator instead of bitwise and https://code.sololearn.com/c9oOMfGekHdT/?ref=app
11th Jan 2020, 6:49 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 3
Use operater instead
12th Jan 2020, 5:08 PM
jansen Unanisa Meroro
jansen  Unanisa Meroro - avatar
+ 2
GAWEN STEASY thank you very much
11th Jan 2020, 6:53 AM
Merjen Annadurdyýewa
+ 2
Now it's working correctly.
11th Jan 2020, 7:55 AM
roskogabor
roskogabor - avatar
+ 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")
13th Jan 2020, 12:32 AM
‎محمد عبدالكريم ابوخشيم‎
‎محمد عبدالكريم ابوخشيم‎ - avatar
0
Yeap
11th Jan 2020, 7:57 AM
Merjen Annadurdyýewa
0
It's solved
11th Jan 2020, 7:59 AM
Merjen Annadurdyýewa
0
But still thank you for this option too
11th Jan 2020, 7:59 AM
Merjen Annadurdyýewa
0
Nothing
12th Jan 2020, 5:46 PM
Merjen Annadurdyýewa
0
Thanks
12th Jan 2020, 5:46 PM
Merjen Annadurdyýewa
0
It's is working good
13th Jan 2020, 6:02 AM
Asif10
0
Yeah
13th Jan 2020, 6:04 AM
Merjen Annadurdyýewa
0
Please talk in English
13th Jan 2020, 6:09 AM
Asif10
0
Omg we aren't here to argue
13th Jan 2020, 6:10 AM
Merjen Annadurdyýewa
0
We are here to learn something
13th Jan 2020, 6:11 AM
Merjen Annadurdyýewa