From 6c29076c5880ecc25544aefb12a9b32ccce456cb Mon Sep 17 00:00:00 2001 From: NikhilPal2468 <60142488+NikhilPal2468@users.noreply.github.com> Date: Thu, 1 Oct 2020 00:13:29 +0530 Subject: [PATCH 1/3] Update caught_exception_1.py --- test-programs/caught_exception_1.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") From 5d4af24b9bca38beb7676596092f63bf4acebd3d Mon Sep 17 00:00:00 2001 From: NikhilPal2468 <60142488+NikhilPal2468@users.noreply.github.com> Date: Thu, 1 Oct 2020 00:16:58 +0530 Subject: [PATCH 2/3] Update sum.txt --- example-code/sum.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) From 6674a73089530436eb809b46a266ec07b14cd2cc Mon Sep 17 00:00:00 2001 From: NikhilPal2468 <60142488+NikhilPal2468@users.noreply.github.com> Date: Thu, 1 Oct 2020 00:31:05 +0530 Subject: [PATCH 3/3] Update ins_sort.txt --- example-code/ins_sort.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)