4/13
Part 1 of 4 · Five movesLearn and do
Run it, and read what fails
Running isn't the last move. It's how you find the mistake you didn't know you made. A failing check says three things: which input, what you got, and what it expected. Read all three before you change a line.
Here a classmate's version has one bug. Every call returns the first ID in its list, even [1, 2, 3], where nothing repeats. When every answer is wrong the same way, look for the line that runs first, at position 0.
In the editor, run first_repeat(ids) as it is, read the failures, and fix the one line that's wrong.