================================== Be-A-Computer: Classes and Objects ================================== The purpose of these problems is to allow you to test your understanding of classes and objects. They 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`` to make sure you have the latest files. You can check your answers by running the code provided in ``pp/bac/`` Warm-up exercise #1: -------------------- Given the following class definition: .. literalinclude:: bac/classes_1.py :lines: 1-20 What is the result of evaluating the following code: .. literalinclude:: bac/classes_1.py :lines: 22-28 You can find the code for this example in ``pp/bac/classes_1.py.`` Warm-up exercise #2: -------------------- This warm-up exercise uses the following constants and data: .. literalinclude:: bac/classes_2.py :lines: 1-13 What is the output of the following code? .. literalinclude:: bac/classes_2.py :lines: 15-73 You can find the code for this example in ``pp/bac/classes_2.py.``