Why doesn't this work? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
18th Apr 2020, 10:44 AM
Joel Hayward
Joel Hayward - avatar
5 Answers
+ 3
Joel Hayward , there are many mistakes in your code. First you can read the input as int, it's easy than for every case to convert. Also the right operators are ">=" and "<=" not "=>" and "=<". Look at the correct code 🐱. Hope it helps you. https://code.sololearn.com/cpj2d8fUwIX8/?ref=app
18th Apr 2020, 10:53 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 3
Your operators are not correct, replace them with <= and >=
18th Apr 2020, 10:48 AM
Bhavya
Bhavya - avatar
+ 1
Also this (int(c)) >= 5 and int(c) <=10)
18th Apr 2020, 10:51 AM
Bhavya
Bhavya - avatar
0
Your Operators |Are Incorrect The Greater Than or LEsser Than Symbols should be before "=" sign
18th Apr 2020, 11:24 AM
Rakshit Chaturvedi
Rakshit Chaturvedi - avatar
0
Thanks
27th Apr 2020, 7:14 PM
Joel Hayward
Joel Hayward - avatar