I would like a container to do the following in python 2-7:
I need that container to behave like a queue: first in first out, I append to it objects and then get them in the same order "from the other end".
However I also need to be able to read up to 5 objects from the beginning of the queue without popping them, then if I don't need them anymore I will pop them from the queue.
I am new to python and I need to know is there any container that would act as such? Or any easy simple implementation for it?