Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example-code/ins_sort.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ def InsertionSort(A):

input = [8, 3, 9, 15, 29, 7, 10]
InsertionSort(input)
print input
print(input)
2 changes: 1 addition & 1 deletion example-code/sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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))
2 changes: 1 addition & 1 deletion test-programs/caught_exception_1.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
try:
x = 1 / 0
except:
print "DIVIDE BY ZERO"
print("DIVIDE BY ZERO")