Something wrong: I can feel it | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Something wrong: I can feel it

So, every time I try to launch the code it gives me something else. Can someone identify my mistake? https://code.sololearn.com/csTkuvZ8O1u5/?ref=app

21st Feb 2020, 9:40 PM
Alisher Berdibekov
Alisher Berdibekov - avatar
2 Answers
+ 1
You need to use 'and' instead of 'or' for your conditions. Because if a value is supposed to be in a certain range, it has to be higher than the minimum AND lower than the max.
21st Feb 2020, 10:45 PM
HonFu
HonFu - avatar
+ 1
didn’t know it, thank you a lot!
21st Feb 2020, 11:17 PM
Alisher Berdibekov
Alisher Berdibekov - avatar