mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-03 18:01:09 +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])
|