with open('input.txt', 'r') as f:
n = int(f.readline())
l1 = list(map(int, f.readline().split()))
print(sum(l1))
Объяснение:
with open('input.txt', 'r') as f:
n = int(f.readline())
l1 = list(map(int, f.readline().split()))
print(sum(l1))
Объяснение: