Python, Data Science, Data Engineering, Programming, Coding.
turn a list into a useful FIFO queue. Append will insert an item to the back of the list, and pop will remove the last item. Lists are actually pretty efficient at doing that. However, inserting and removing from the head of a list is costly because the entire list must be shifted in memory. The