from queue import * mystack = LifoQueue() mystack.put("a") mystack.put("b") mystack.put("c") mystack.put("d") mystack.put("e") for i in range(5): k=mystack.get() print(k) #empty the stack checkEmpty= mystack.empty() print("Is the stack empty?", checkEmpty)