# Like a line at a shop. First person in, first person out. # Order of insertion is what matters. # Use collections.deque (not a list) — O(1) on both ends. queue.append(5) # push to back → [5] ...