+ 2

In the problem Paint costs i wrote this code. Is there any error as it shows 1 case has failed.I don't understand pls explain

pnt = int(input()) cst = 5*pnt + 40 tax = cst*(10/100) ttlcst = round(cst + tax) print(ttlcst)

14th May 2020, 3:44 PM
Ayushman Dash
Ayushman Dash - avatar
2 Antworten
+ 2
Just use ceil() instead of round() https://code.sololearn.com/cmMYeSA3BAf5/?ref=app
14th May 2020, 4:01 PM
Arsenic
Arsenic - avatar
+ 2
Thanku Arsenic now my code worked but what was the problem wid my version??
14th May 2020, 4:40 PM
Ayushman Dash
Ayushman Dash - avatar