import queue
import threading
import time

q = queue.Queue()

for i in range(5):
    q.put(i)

while not q.empty():
    print(q.get(), end = ' ')

print()
##### Lifo
q = queue.LifoQueue()

for i in range(5):
    q.put(i)

while not q.empty():
    print(q.get(), end = ' ')

print()
##### Priority

q = queue.PriorityQueue()
q.put(1)
q.put(2)
q.put(4)
q.put(3)

for i in range(q.qsize()):
    print(q.get())

f233a9b9b5334faa4278fb16084c6dd8ef29b907
<mask token>

<mask token>
for i in range(5):
    q.put(i)
while not q.empty():
    print(q.get(), end=' ')
print()
<mask token>
for i in range(5):
    q.put(i)
while not q.empty():
    print(q.get(), end=' ')
print()
<mask token>
q.put(1)
q.put(2)
q.put(4)
q.put(3)
for i in range(q.qsize()):
    print(q.get())

<mask token>
q = queue.Queue()
for i in range(5):
    q.put(i)
while not q.empty():
    print(q.get(), end=' ')
print()
q = queue.LifoQueue()
for i in range(5):
    q.put(i)
while not q.empty():
    print(q.get(), end=' ')
print()
q = queue.PriorityQueue()
q.put(1)
q.put(2)
q.put(4)
q.put(3)
for i in range(q.qsize()):
    print(q.get())

import queue
import threading
import time
q = queue.Queue()
for i in range(5):
    q.put(i)
while not q.empty():
    print(q.get(), end=' ')
print()
q = queue.LifoQueue()
for i in range(5):
    q.put(i)
while not q.empty():
    print(q.get(), end=' ')
print()
q = queue.PriorityQueue()
q.put(1)
q.put(2)
q.put(4)
q.put(3)
for i in range(q.qsize()):
    print(q.get())

import queue
import threading
import time

q = queue.Queue()

for i in range(5):
    q.put(i)

while not q.empty():
    print(q.get(), end = ' ')

print()
##### Lifo
q = queue.LifoQueue()

for i in range(5):
    q.put(i)

while not q.empty():
    print(q.get(), end = ' ')

print()
##### Priority

q = queue.PriorityQueue()
q.put(1)
q.put(2)
q.put(4)
q.put(3)

for i in range(q.qsize()):
    print(q.get())
