0

how to solve the hidden case error

i have tried to solve this question everything i wrote is correct but only one case is showing error (3rd one) and it is hidden how to complete it https://code.sololearn.com/c414gG22wxmJ/?ref=app

5th Apr 2020, 8:26 AM
Abu Ubada
Abu Ubada - avatar
12 Respuestas
+ 1
Abd Instead of using round() use import math math.ceil()
5th Apr 2020, 8:43 AM
Utkarsh Sharma
Utkarsh Sharma - avatar
0
this means that your code is not correct! link it here.
5th Apr 2020, 8:30 AM
John Robotane
John Robotane - avatar
0
From what I know of this question, The main reason is using round() Instead of that use math.ceil() (import math before that) And if still the test case is failed, post your code so we can check what is wrong.
5th Apr 2020, 8:34 AM
Utkarsh Sharma
Utkarsh Sharma - avatar
0
I think you have used round function instead of ciel because alot of other users face this error.It might be wrong. So, post your code here so if there is any other error some one help you.
5th Apr 2020, 8:34 AM
Muhammad Bilal
Muhammad Bilal - avatar
0
Utkarsh Sharma I think the math.ceil() is the best for that challenge. It rounds up the float value to the nearest integer, that's what the question asks
5th Apr 2020, 8:39 AM
Justus
Justus - avatar
0
Abd post the code
5th Apr 2020, 8:39 AM
Justus
Justus - avatar
0
i have posted it check it out
5th Apr 2020, 8:40 AM
Abu Ubada
Abu Ubada - avatar
0
Abd Where is code link??
5th Apr 2020, 8:41 AM
Muhammad Bilal
Muhammad Bilal - avatar
0
Muhammad Bilal link is in the question
5th Apr 2020, 8:42 AM
Abu Ubada
Abu Ubada - avatar
0
Abd round up tax using math.ceil as suggested and add it to cost.
5th Apr 2020, 8:43 AM
John Robotane
John Robotane - avatar
0
so i shouldn't use the round function.. now i get it
5th Apr 2020, 8:43 AM
Abu Ubada
Abu Ubada - avatar
0
Utkarsh Sharma ok i will use it👍👍👍
5th Apr 2020, 8:45 AM
Abu Ubada
Abu Ubada - avatar