0

# Paint Costs

Can anyone help me with this? I've tried a lot of variations of this and always fail cases 3 and 4. Thx paint = float(input())*5 tax = ((paint*.1 + paint)+(40*.1 + 40)) import math math.ceil(tax) print(int(tax))

2 Answers

+ 1

paint = float(input())*5
tax = ((paint*.1 + paint)+(40*.1 + 40))
import math
print(math.ceil(tax))
math.ceil doesn't effects original value but returns a new value so it would have been int(math.ceil(tax)) but you Don need int anyway

+ 1

tax = math.ceil(tax)