3 lines
98 B
Python
3 lines
98 B
Python
with open('nums.txt', 'r') as f:
|
|
nums = [int(line.strip()) for line in f]
|
|
print(sum(nums)) |