How to use lists as queues in Python ?

Question

>> queue = [1, 2, 3]
>>> queue.append(4)
>>> queue.pop(0)
1
This is Fifo implementation.