Homework Assignment
Please make sure you adhere to the policies on
academic integrity.
- Give the type and value of each of the following Python3 expressions:
- 23 + 8
- 3 - 8
- 17 / 5
- 3 * '12'
- 4 * 3 ** 2 + 1
- Draw the evaluation tree corresponding to the Python3 expression
4 * 3 ** 2 + 1
- Give a Python expression corresponding to the following mathematical expression
$$ \frac{28.5 \ \cdot\ 3^3 - 1500}{11^2 + 37.3} $$
- Using the diagram style of Section 1.4, draw the resulting state at the end of the following interaction
>>> x = 5
>>> y = x + 3
>>> x = 2 * y
>>> y = x + 3
Last modified: Sunday, 22 December 2019