Help for Ballpark Order Code Coach | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Help for Ballpark Order Code Coach

Hi, I'm trying to solve the Ballpark Order Code Coach. The code runs correctly but Sololern tells it's not correct and I don't understand why. Any idea on this? https://code.sololearn.com/cTYtX2jUXQCd/?ref=app

15th Nov 2022, 2:25 PM
Antonio
1 Answer
+ 4
Sololearn expects your final output in currency format, so rounded to 2 decimal places. Try this for the last line: print(round(count_final,2))
15th Nov 2022, 2:37 PM
Mozzy
Mozzy - avatar