Isn't this enough?
n = int(input())
li = []
for i in range(0, n):
point = int(input())
li.append(point)
max_li = max(li)
min_li = min(li)
total_score = -(max_li + min_li)
for x in range(0, n):
total_score += li[x]
print(li)
print("Max: " + str(max_li) + ", Min: " + str(min_li))
print("Total score: " + str(total_score))
© 2024 OneMinuteCode. All rights reserved.