mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-18 17:20:16 +00:00
6 lines
104 B
Python
6 lines
104 B
Python
|
sum = 0
|
||
|
with open("num.txt",'r') as f:
|
||
|
for line in f:
|
||
|
sum += int(line)
|
||
|
print(str(sum)[:10])
|