Rocket has a bug he cannot find. He has stared at the code for twenty minutes. Raven has a strange suggestion: explain the program out loud, one line at a time, to someone who does not code.
"How can that help if they do not know Python?" Rocket asks.
Raven smiles. "What do you notice when you have to say exactly what each line does?" she asks. "You stop reading what you meant, and start reading what you wrote."
Nova settles on the desk to listen. "Programmers have done this for a very long time," she says. "Sometimes the listener is a person, sometimes a toy on the desk."
Halfway through line seven, Rocket stops talking and laughs. He has found it.
# speed.py (has a bug)
def speed(distance, hours):
return hours / distance
print(speed(100, 2)) Superb work. Next week you start building Mission Log, the tool you will demo at graduation.