Use list as a queue - FIFO



examples/lists/list_as_a_queue.py
a_queue = []
print(a_queue)

a_queue.append('Moo')
print(a_queue)

a_queue.append('Bar')
print(a_queue)

first = a_queue.pop(0)
print(first)
print(a_queue)

[]
['Moo']
['Moo', 'Bar']
Moo
['Bar']