Canteen Queue
Rearrange the lines · Beginner · about 4 min
This program keeps a lunch queue in a list. One student joins at the back, one is let in at the front, then the first in line is served. Its lines are mixed up: put them back in an order that prints exactly the output below. Each line keeps its indentation, so you only choose the order.
Example
In the right order, the program prints:
['Dev', 'Asha', 'Ben', 'Chloe'] Dev is served first Still waiting: 3
Your program
0 of 7 placedAdd the first line from the blocks.
Blocks
7 blocks still to place
The solution opens after your first Check.