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