diff --git a/example-code/ins_sort.txt b/example-code/ins_sort.txt index d6598fae2..4c2dacc0f 100644 --- a/example-code/ins_sort.txt +++ b/example-code/ins_sort.txt @@ -10,4 +10,4 @@ def InsertionSort(A): input = [8, 3, 9, 15, 29, 7, 10] InsertionSort(input) -print input +print(input) diff --git a/example-code/sum.txt b/example-code/sum.txt index 99a8ace18..3fe651044 100644 --- a/example-code/sum.txt +++ b/example-code/sum.txt @@ -13,4 +13,4 @@ def summation(low, high, f, next): def sumsquares(low, high): return summation(low, high, lambda x: x**2, lambda x: x+1) -print sumsquares(1, 10) +print(sumsquares(1, 10)) diff --git a/test-programs/caught_exception_1.py b/test-programs/caught_exception_1.py index 1bf3cdec0..ad24ed88b 100644 --- a/test-programs/caught_exception_1.py +++ b/test-programs/caught_exception_1.py @@ -1,5 +1,5 @@ try: x = 1 / 0 except: - print "DIVIDE BY ZERO" + print("DIVIDE BY ZERO")