0

Code coach: Paint cost

Im trying to solve it using python my code is: colour = int(input()) def calc(colour): total = int(((colour * 5) + 40) * 1.10) return total print(calc(colour)) Test case 1,2,5# passed but 3 and 4 failed

27th Mar 2024, 3:31 PM
Ayush
Ayush - avatar
1 Resposta
+ 4
> A number that represents the cost of your purchase ***rounded up*** to the nearest whole number.
27th Mar 2024, 3:36 PM
Lisa
Lisa - avatar