empty heap, since heap[0] raises the appropriate IndexError already.
Attach a file by drag & drop or click to upload