Skip to content

Commit 189efcc

Browse files
Merge pull request geekcomputers#472 from prashanthsp6498/master
made changes in print statement. Now it is works on both python3 and …
2 parents b7aa37f + caac6af commit 189efcc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

communication/file.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
def slice(mink, maxk):
1010
s = 0.0
11-
for k in range(mink, maxk):
11+
for k in range(int(mink), int(maxk)):
1212
s += 1.0/(2*k+1)/(2*k+1)
1313
return s
1414

@@ -36,6 +36,6 @@ def pi(n):
3636
return math.sqrt(sum(sums) * 8)
3737

3838
if __name__ == '__main__':
39-
print "start"
40-
print pi(10000000)
39+
print("start")
40+
print(pi(10000000))
4141

0 commit comments

Comments
 (0)