Skip to content

Commit ab69a75

Browse files
authored
Use print() function in both Python 2 and Python 3
1 parent 2364ede commit ab69a75

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

algorithms/sorting/insertion_sort.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ def insertion_sort(lst):
1515
return lst
1616

1717
test_data = [5,9,4,27,3,6]
18-
print insertion_sort(test_data)
18+
print(insertion_sort(test_data))
1919

2020
test_data = ['f','b','z','a','x']
21-
print insertion_sort(test_data)
21+
print(insertion_sort(test_data))
2222

2323
# Resulting output:
2424
# [3, 4, 5, 6, 9, 27]
2525
# ['a', 'b', 'f', 'x', 'z']
26-

0 commit comments

Comments
 (0)