6 lines
105 B
Python
6 lines
105 B
Python
total = 0
|
|
with open('nums.txt') as f:
|
|
for line in f:
|
|
total += int(line.strip())
|
|
print(total)
|