+ 5

What is wrong with this Code??

I can't see the error https://code.sololearn.com/cbvt9Q6Qtu4a/?ref=app

30th Dec 2022, 6:19 PM
Fausto José Arredondo Saladin
Fausto José Arredondo Saladin - avatar
7 odpowiedzi
+ 10
fausto saladin , > what about values between 24.9 and 25.0 like 24.93 ?? > we have to correct the 2 upper bounds 24.9 and 29.9 and also the operator.
30th Dec 2022, 6:33 PM
Lothar
Lothar - avatar
+ 7
Muhammed Favas T P , the code is running with code coach and gets 5 test cases to solve. 2 of them are visible, the others are hidden. only if the code passes all test cases, the task is solved. the initial code as posted does fail for 1 test case.
30th Dec 2022, 9:14 PM
Lothar
Lothar - avatar
+ 5
The boundaries are wrong, as Lothar have said. This is what I have: https://code.sololearn.com/cfyn2MRebToR/?ref=app
30th Dec 2022, 7:12 PM
Lamron
Lamron - avatar
+ 1
Nothing is wrong Input : 80 1.80 Output : Normal
30th Dec 2022, 7:10 PM
Muhammed Favas T P
Muhammed Favas T P - avatar
+ 1
Lo único que le falta es añadir el else por si introducen un valor fuera de esos rangos. Espero que te sirva
31st Dec 2022, 8:30 PM
Alejandro
Alejandro - avatar
+ 1
If you don't write the two inputs then will be an error otherwise, the code is working.
1st Jan 2023, 3:30 PM
Majdi Mbarek
Majdi Mbarek - avatar
0
I think you should use & sign on the place and.
31st Dec 2022, 12:06 PM
Bundelkhand University
Bundelkhand University - avatar