For example, I am working in a Dijkstra's code for my studies. So I was working with priority queues, however, I never used them before and I do not know how to extract the minimum value of the priority queue. Can someone help me?
Q = PriorityQueue()
Q.put((start, dist[start]))
while Q != 0:
u = #the minimum value of PriorityQueue