What is the value of result after the following code execute…

What is the value of result after the following code executes? import heapqfrom collections import deque h = [6, 2, 8]heapq.heapify(h) q = deque([3, 7]) result = [] while q:    x = q.popleft()    heapq.heappush(h, x)    result.append(heapq.heappop(h)) result.append(heapq.heappop(h))result