From 7ce559ecdd3e4430baa9e8e42f754f182826a22e Mon Sep 17 00:00:00 2001 From: arijit pande Date: Sun, 14 Aug 2016 10:04:21 +0000 Subject: [PATCH] added __future__ module --- sorts/heap_sort.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sorts/heap_sort.py b/sorts/heap_sort.py index e5ed488b2..5d1cbbbd0 100644 --- a/sorts/heap_sort.py +++ b/sorts/heap_sort.py @@ -1,3 +1,7 @@ + +from __future__ import print_function + + def heapify(unsorted,index,heap_size): largest = index left_index = 2*index + 1 @@ -31,5 +35,5 @@ if __name__ == '__main__': user_input = input_function('Enter numbers separated by coma:\n') unsorted = [int(item) for item in user_input.split(',')] - print heap_sort(unsorted) + print (heap_sort(unsorted))