figure - make sure that your stack imple mentation detects overflows and underflows working with queues queue works differently from stack think of any line you've ever stood inyou go to the back of the lineand when you reach the front of the line you get to do whatever you stood in the line to do queue is often used for task scheduling and to maintain program flow -just as it is in the real world the following steps help you create queue-based application this example also appears with the downloadable source code as queuedata py open python file window you see an editor in which you can type the example code type the following code into the window -pressing enter after each lineimport queue myqueue queue queue( print(myqueue empty()input("press any key when ready "