It's because you are iterating on lst1s values and in your loop, i
will contains lists values (in your second example, it will be equal to 7 and then 69 and ...). you need to use indexes instead. try this one :
import math
lst = list(map(int,input().strip().split()))
lst1 = sorted(lst)
ls = []
for i,_ in enumerate(lst1):
ls.append(math.fsum(lst1)-lst1[i])
print(round(min(ls), ),round(max(ls), ))
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…