import heapq
lista = [100,3,2,17,19,36,1,25,7]
heapq.heapify(lista)
print(lista)
menor = heapq.heappop(lista)
print(menor)
print(lista)
aW1wb3J0IGhlYXBxCgpsaXN0YSA9IFsxMDAsMywyLDE3LDE5LDM2LDEsMjUsN10KCmhlYXBxLmhlYXBpZnkobGlzdGEpCnByaW50KGxpc3RhKQoKbWVub3IgPSBoZWFwcS5oZWFwcG9wKGxpc3RhKQpwcmludChtZW5vcikKCnByaW50KGxpc3RhKQo=
[1, 3, 2, 7, 19, 36, 100, 25, 17]
1
[2, 3, 17, 7, 19, 36, 100, 25]