Skip to content

Commit a5c954f

Browse files
author
Christian Bender
authored
Correction: File solv3.py
I have remove some semicolons. line 11, 12 and 42
1 parent 567f2ad commit a5c954f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: Project Euler/Problem 01/sol3.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
This solution is based on the pattern that the successive numbers in the series follow: 0+3,+2,+1,+3,+1,+2,+3.
99
'''
1010
n = int(raw_input().strip())
11-
sum=0;
12-
num=0;
11+
sum=0
12+
num=0
1313
while(1):
1414
num+=3
1515
if(num>=n):
@@ -39,4 +39,4 @@
3939
if(num>=n):
4040
break
4141
sum+=num
42-
print sum;
42+
print sum

0 commit comments

Comments
 (0)