========================= Practice problems: Week 3 ========================= The purpose of these problems is to allow you to test your understanding of the material we have covered so far. It is intended to take an hour or so, assuming you have done the reading. To get started run ``git pull upstream master``, which will pick up a directory named ``pp3``. The problems are broken up into two parts: a set of "be-a-computer" warm-up exercises and a set of programming problems. You should do the warm-up exercises by hand. You can check your answer by running the Python program ``warmup.py`` in ``pp3``. We will be using a system named Kattis for the programming problem. Kattis is a website that allows students to submit solutions to programming problems, and have them evaluated automatically by running a series of test cases on the submitted solutions. You can find information about how to use Kattis `here `_. You can find the skeleton code needed for the programming problems in ``pp3``. Both warm-up exercises and the challenge exercise use the following constants and data: .. literalinclude:: warmup.py :lines: 1-13 Warm-up exercise #1: What is the output of the following code? .. literalinclude:: warmup.py :lines: 16-26 Warm-up exercise #2: What is the output of the following code? .. literalinclude:: warmup.py :lines: 29-43 Programming problem #1: `Babelfish `_ Programming problem #2: `Odd man out `_ Here are a couple problems for those of you who like a challenge! Challenge exercise: What is the output of the following code? .. literalinclude:: warmup.py :lines: 46-62 Challenge programming problem: `Secure doors `_