Code coach | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

7th Jun 2021, 12:58 PM
Aya Yusuf Alajab
3 Answers
+ 3
In my solution I used round() on the total cost calculation. But my solution is a little more condensed than yours
7th Jun 2021, 1:20 PM
Roderick Davis
Roderick Davis - avatar
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))
7th Jun 2021, 1:00 PM
Aya Yusuf Alajab
0
Roderick Davis hey it works! Thanks:) Yeah mine isn't that neat, but it'd be if I've used a function.
7th Jun 2021, 1:30 PM
Aya Yusuf Alajab