Is there any way to call a function before its definition.
def Insert(value):
"""place value at an available leaf, then bubble up from there"""
heap.append(value)
BubbleUp(len(heap) - 1)
def BubbleUp(position):
print 'something'
This code shows "unresolved reference BubbleUp"