What does this controller print?

from AI coding agents
Python 3.14 beginner 3 min

What does this controller print?

Python
transitions = {
    "start": "file read",
    "file read": "patch written",
    "patch written": "tests passed",
    "tests passed": "finish",
}

state = "start"
while True:
    print(state)
    if state == "finish":
        break
    state = transitions[state]
Open in playground
Report an error