Skip to content
Snippets Groups Projects
Commit 68c5eeee authored by Romain Vuillemot's avatar Romain Vuillemot
Browse files

fix queue

parent b2669b61
No related branches found
No related tags found
No related merge requests found
from queue import PriorityQueue from queue import PriorityQueue
file_prio = PriorityQueue() file_prio = PriorityQueue()
file_prio.put((2, "Bob")) file_prio.put(2, "Bob")
file_prio.put((1, "Alice")) file_prio.put(1, "Alice")
file_prio.put(6, "Nat")
while not file_prio.empty(): while not file_prio.empty():
print(file_prio.get()) print(file_prio.get())
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment