fork(1) download
import heapq

lista = [100,3,2,17,19,36,1,25,7]

heapq.heapify(lista)
print(lista)
Success #stdin #stdout 0.02s 28384KB
stdin
Standard input is empty
stdout
[1, 3, 2, 7, 19, 36, 100, 25, 17]