Skip to content

Commit 7ce559e

Browse files
committed
added __future__ module
1 parent 04d1569 commit 7ce559e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sorts/heap_sort.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2+
from __future__ import print_function
3+
4+
15
def heapify(unsorted,index,heap_size):
26
largest = index
37
left_index = 2*index + 1
@@ -31,5 +35,5 @@ def heap_sort(unsorted):
3135

3236
user_input = input_function('Enter numbers separated by coma:\n')
3337
unsorted = [int(item) for item in user_input.split(',')]
34-
print heap_sort(unsorted)
38+
print (heap_sort(unsorted))
3539

0 commit comments

Comments
 (0)