===================== Be-A-Computer: Week 4 ===================== The purpose of these problems is to allow you to test you understanding of the Functional Programming material we have covered so far. It 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 ``bac4``. Functional Programming ---------------------- You can check your answers by running the Python program ``functional.py`` in ``bac4`` Warm-up exercise #1: What is the output of the following code? .. literalinclude:: functional.py :lines: 2-8 Warm-up exercise #2: What is the output of the following code? .. literalinclude:: functional.py :lines: 12-22 Warm-up exercise #3: What is the output of the following code? (Note: This is a problem from a past CS 121 exam) .. literalinclude:: functional.py :lines: 26-33