the class also has methods to check whether the queue is full(or empty(and there are few additional methods to deal with concurrent access that we won' discuss here here is interactive session demonstrating these principlesfrom queue import queue lineup queue(maxsize= lineup get(block=falsetraceback (most recent call last)file ""line in lineup get(block=falsefile "/usr/lib /python /queue py"line in get raise empty queue empty lineup put("one"lineup put("two"lineup put("three"lineup put("four"timeout= traceback (most recent call last)file ""line in lineup put("four"timeout= file "/usr/lib /python /queue py"line in put raise full queue full lineup full(true lineup get('onelineup get('twolineup get('threelineup empty(true