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
12 Respuestas
+ 1
Abd
Instead of using
round()
use
import math
math.ceil()
0
this means that your code is not correct! link it here.
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.
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.
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
0
Abd post the code
0
i have posted it check it out
0
Abd
Where is code link??
0
Muhammad Bilal link is in the question
0
Abd round up tax using math.ceil as suggested and add it to cost.
0
so i shouldn't use the round function.. now i get it
0
Utkarsh Sharma ok i will use it👍👍👍