Lab 11: Fruitful Recursion
- Part 0: Worksheet warm-up
- Part 1: Using the Debugger
- Part 2: Fruitful Recursion
No download folder for today.
Create a new file called
lab11.py and write all your code for today's lab in that file.
Table of Contents
- In a fruitful recursive function, which function frames contribute to the
value returned by the original function frame?
Show AnswerThe answer here is "all of them." Although only the original function frame directly returns the result value, it will typically use information returned by other function frames to construct that value, so all of the function frames end up contributing to the eventual result somehow.