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)))
Use ceil() istead of round() Here is the fixed code👇 https://code.sololearn.com/clYu8S2D4J6f/?ref=app
This is because paint box are individual units. If you need 2.3 paint , you have no option but to but 3 paint boxes.
Thank you so much!
What actually test 3 might be, it must be integral right?