You will be taking the first quiz on paper, individually, in class on February 1. It is closed-book, closed-notes, and closed-computer.
The quiz will cover all Python concepts covered in Lessons 1 and 2, including:
You should consider doing this entire pre-activity without running the code in a Pyton code cell, to better duplicate your experience on the quiz.
1. For each following Python symbol, describe the meaning of the symbol and show a context in which it is used:
1a. . (a period)
1b. tab
2. The following lines of Python has an error and will not run. Explain (or fix) the error.
angle = math.cos(math.pi)
3. Trace the value of the variable angle after running the following code (show all intermediate values for full credit.
angle = 360 angle = angle/180.0 * 3.14