Super sale code coach | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Super sale code coach

https://sololearn.com/coach/58/?ref=app I don’t know why test case 4 is showing it wrong. I checked it many times. My code: a=input() a=a.split(",") a=[int(i) for i in a] a.remove(max(a)) sum=0 for i in a: sum+=i res=sum*3/10 tax=res*7/100 res+=tax print(round(res*10//10))

15th Jan 2023, 5:28 PM
chess doctor
chess doctor - avatar
2 Answers
+ 8
chess doctor , 2 issues has to be fixed: > a=[lnt(i) for i in a] # has to be converted to float not int. otherwise we will lose the digital places. > print(int(res)) # the output has to be an integer number (see task description)
15th Jan 2023, 9:32 PM
Lothar
Lothar - avatar
+ 5
That link is only to the code coach. Can you copy your code into a new one in the code playground and attach it here?
15th Jan 2023, 5:49 PM
Ausgrindtube
Ausgrindtube - avatar