added __future__ module

This commit is contained in:
arijit pande 2016-08-14 10:04:21 +00:00
parent 04d15692a8
commit 7ce559ecdd

View File

@ -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))