Push, pop: last in, first out · in code: Stacks (Push and Pop)
Uses a list as a stack, like a pile of plates: push puts one on top, pop takes the top one off. The last one in is the first one out.
plates = []."blue plate" (for Push).top (for Pop and Peek).Open it in the editor, press Run, then change it and run it again.
plates = []"Took off: " + top"Left: " + join(plates)Took off: greenLeft: red, blueplates = []plates.append("red")plates.append("blue")plates.append("green")top = plates.pop()print("Took off: " + top)print("Left: " + ", ".join(plates))length(plates) > 0 with a Decision first.