mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-12-02 17:31:08 +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])
|