Rocket builds a function machine out of a cardboard box. Input cards go in one slot. Answers come out the other.
Raven drops in a card that says 6. Rocket, hiding inside, works it out and pushes back a card that says 12. "What do you notice?" Raven asks the crew. "What is the machine doing?"
Nova guesses first. "Times two! That is a return value," she says with a happy flicker.
Here is a different machine. Its rule is times 2, then add 1.
def machine(n):
return n * 2 + 1
print(machine(6))
print(machine(machine(1))) Great building! Next week, you will tidy up a long program, like a real engineer.