Skip to content

Commit 9c7ec0d

Browse files
authored
Create sol2.py
1 parent d085ea5 commit 9c7ec0d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: project_euler/problem_13/sol2.py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sum=0
2+
with open("num.txt",'r') as f:
3+
for line in f:
4+
sum += int(line)
5+
print(str(sum)[:10])

0 commit comments

Comments
 (0)