I have a list of lists called opened which was declared like this:
opened = [[] for i in range(5)]
Now opened = [[], [], [], [], []]
How can I heapify each of the sublists using the heapq.heapify()
function? i.e, opened[0], opened[1], opened[2], opened[3], opened[4] should be heapified.
Thanks in advance.