Eltham College · Computer Science
CS Lab
Interactive models for lessons. Drag in any 3D scene to look around.
Year 7 · if / elif / else
The Grade SorterA score drops through the conditions. The first True one catches it; the rest are never checked.
Separate ifs vs elifWith three separate ifs one score can print three grades. With elif it prints one.
Twin TowersSame conditions, different order. Swap the rings in Tower A until both towers agree.
The Marble TrackBoundary values: what happens at exactly 40, 50 and 70? Switch >= and > to find out.