+ 1
Paint Cost
I keep failing test 3 and I donât know why. Can anyone help? supplies = 40.00 paint = int(input())*5 tax = (supplies + paint)*0.1 total = (supplies + paint) + tax print(int(round(total)))
4 Answers
+ 8
Use ceil() istead of round()
Here is the fixed codeđ
https://code.sololearn.com/clYu8S2D4J6f/?ref=app
+ 3
This is because paint box are individual units. If you need 2.3 paint , you have no option but to but 3 paint boxes.
+ 1
Thank you so much!
0
What actually test 3 might be, it must be integral right?