def push ( h , x ) : h . push ( x ) up ( h , h . size ( ) - 1 )
change object value and heap python
Push a new value into heap .
def push(h, x):
    """Push a new value into heap."""
    h.push(x)
    up(h, h.size()-1)