+ 1
sololearn super sale
Can anyone please tell me how these two code are different. The first one fails on 1 test case(4th) while the other passes on every test case. 1st: a=input().split(",") a.remove(max(a)) b=[] for i in a: b.append(float(i)*0.3*1.07) print(int(sum(b))) 2nd: a=[float(s) for s in input().split(",")] a.remove(max(a)) b=[] for i in a: b.append(i*0.3*1.07) print(int(sum(b))) I'd be grateful if anyone can make me understand.
1 Answer
+ 3
@Alexandr omg you're right...thank you so much for the quick reply