+ 1
Code coach
I keep getting 2 wrong results and I have no idea why, could anyone help, I'll be grateful:) https://www.sololearn.com/coach/22?ref=app #Code is in the comments
3 Answers
+ 3
In my solution I used round() on the total cost calculation. But my solution is a little more condensed than yours
0
v = int(input())
#v is the number of colors
x=(v*5.00) + 40.00
#x is the cost without tax
y= (x/100) * 10
#y is the tax
z= x + y
#z is the total cost
print(int(z))
0
Roderick Davis hey it works!
Thanks:)
Yeah mine isn't that neat, but it'd be if I've used a function.