<reponame>CodedLadiesInnovateTech/-python-challenge-solutions
#Python program to create a LIFO queue.
import queue
q = queue.LifoQueue()
#insert items at the head of the queue 
for x in range(4):
    q.put(str(x))
#remove items from the head of the queue 
while not q.empty():
    print(q.get(), end=" ")
print()
#Python program to create a LIFO queue.
import queue
q = queue.LifoQueue()
#insert items at the head of the queue 
for x in range(4):
    q.put(str(x))
#remove items from the head of the queue 
while not q.empty():
    print(q.get(), end=" ")
print()
#Python program to create a LIFO queue. #insert items at the head of the queue #remove items from the head of the queue