Unit 7 · Lesson 4
Build the idea
Start with the concept and its key vocabulary.
OCR do/until runs the body first and checks its condition afterwards, so it always executes at least once. Python has no direct do-until statement. A faithful translation uses while True, performs the body, and breaks when the ERL until condition becomes true.
A post-test loop that repeats until its condition becomes true.
Checking a stopping condition after the loop body has executed.
A special input value used to signal that repetition should stop.
A Python statement that immediately leaves the nearest loop.