0
[SOLVED] Ballpark order problem
I can't find the error Test 1 and 2 are passed but rest of three are failed (link)
10 Answers
+ 1
ABHISHEK But if they don't order anything, you should by default add the equivalent of coke which is $5. Meanwhile, your code adds $4 if not found in dic.
+ 2
Test 1 and 2 are passed but rest of three are failed
+ 2
ABHISHEK I had to format the output to show only two digits after the comma, in order to pass. Maybe that's the problem?
{:.2f}
Plus:
- coke is $5 not $4
- do not iterate to a fixed range of 4, but in the total length of the input.split list
+ 1
JME Still Not working
Maybe bcoz they are making four orders
range is not problem
Something else is wrong
+ 1
JME this is main problem xD coz i don't know either what i m doing wrong and what i need to solve
Btw thanks for looking into this :-)
+ 1
Kuba SiekierzyĆski
I tried but it is still not solved
And i looked again in code coke is already 5
0
Kuba SiekierzyĆski
Oh sorry i missed that
It is solved now thank you!
0
@ABHISHEK I'm having the same issue. Can you share what you did differently to solve the last 3 tests?
0
Paige Wu I don't have pro subscription and I don't remember this now but maybe i could help if you add your solution and question
0
https://code.sololearn.com/cS8dMr5Fm42n/?ref=app
ABHISHEK you can use my code, it has passed all test