Super Sale problem
While trying to solve above mentioned code coach problem (ref--https://www.sololearn.com/coach/58?ref=app) I wrote this following code. prices = input().split(",") max = max(prices) prices.remove(max) before_sale = sum([float(i) for i in prices],float(max))*1.07 #print (before_sale) after_sale = sum([float(i) * 0.7 for i in prices],float(max))*1.07 from math import floor as f savings = f(before_sale - after_sale) print (savings ) It passes all the tests except 4th one. Can anyone help me find the bug in this code that makes it fail the 4th test. Thanks in advance!!