Skip to content

Commit 0516bde

Browse files
author
cclauss
authored
from __future__ import print_function For Python 3
@ltdouthit __print()__ is a function in Python 3
1 parent 6035672 commit 0516bde

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Maths/TrapezoidalRule.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"extended trapezoidal rule"
88
99
'''
10+
from __future__ import print_function
1011

1112
def method_1(boundary, steps):
1213
# "extended trapezoidal rule"
@@ -39,7 +40,7 @@ def main():
3940
steps = 10.0 #define number of steps or resolution
4041
boundary = [a, b] #define boundary of integration
4142
y = method_1(boundary, steps)
42-
print 'y = {0}'.format(y)
43+
print('y = {0}'.format(y))
4344

4445
if __name__ == '__main__':
4546
main()

0 commit comments

Comments
 (0)