PY
py
1
2
3
4
5
6
7
8
9
import math
prices = sorted(input().split(","))
savings = 0
if len(prices) <= 1:
print(savings)
else:
for i in range(len(prices)-1):
savings += float((prices[i]))*0.3*1.07
print(math.floor(savings))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run