PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import math
#take input, separate, and find max value
p = input()
p_split = p.split(',')
p_max = max(p_split)
#filter list for all values less than max, convert to integer, take discount of each value
res = list(filter(lambda x: x < p_max, p_split))
res_list = list(map(int, res))
discount = list(map(lambda x: x* .3, res_list))
#add total discount, round down to nearest integer, include sales tax
total = 0
for i in discount:
i=total + i
total = i
print(math.floor(total*1.07))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run