What is the output of the following Python program?
import heapq
h = []
for x in [5, 1, 8, 3]:
heapq.heappush(h, x)
print(h[0], [heapq.heappop(h) for _ in range(len(h))], heapq.nlargest(2, [5, 1, 8, 3]))
The smallest item is always at index 0 of a min-heap, and pops come out in ascending order.