======================== Be-A-Computer: Weeks 5-8 ======================== The purpose of these problems is to allow you to test your understanding of Classes and Recursion. Each section should not take more than an hour to complete. You should do these warm-up exercises by hand. We provide files that will allow you to check your answers. To get started run ``git pull upstream master``, which will pick up a directory named ``bac5-8``. Classes and Objects ------------------- You can check your answers by running the Python program ``classes.py`` in ``bac5-8`` Warm-up exercise: This warm-up exercise uses the following constants and data: .. literalinclude:: classes.py :lines: 1-13 What is the output of the following code? .. literalinclude:: classes.py :lines: 15-73 Recursion --------- You can check your answers by running the Python program ``recursion.py`` in ``bac5-8`` Warm-up exercise #1: What is the output of the following code? .. literalinclude:: recursion.py :lines: 3-14 Warm-up exercise #2: What is the output of the following code? .. literalinclude:: recursion.py :lines: 17-35