Rocket and Raven hold a friendly race on the observation deck.
Rocket counts down from 5 by stacking cups into a tower, one cup per call. Raven counts down with tally marks in a single row.
"What do you notice about our two ways?" Raven asks when they both say Liftoff.
"My tower got tall, then came back down," Rocket says. "Your row just kept going."
Nova cheers for both. "Here is a hint. Think about what would happen if you counted from 50."
| Bonus recap statement | True or false? |
|---|---|
| range(1, 6) makes 1, 2, 3, 4, 5. | ? |
| A loop can never give the same answer as a recursion. | ? |
| A while loop needs a change that leads to stopping. | ? |
| Very deep recursion can cause a RecursionError. | ? |
Quest complete! Next week we search the star catalog one star at a time.