Hello, Python

1. a. 6
b. 20.0
c. 4.5
d. -4.5
e. 4
f. 1
g. 1.0
h. 1.0
i. -1
j. -1
k. -4.5
l. 19
m. 35

2. The unary plus operator returns the value of its argument unchanged.

4. a. (6 * 3), then (7 * 4), then (18 + 28).
b. (3 /4), then (5 + 0.75).
c. (3 ** 4), (2 * 81), then (5 - 162).

6.

  • (x - x) is evaluated, yielding 0.
  • 0 is added to the value at x, which is 3, yielding 3.
  • finally the result, 3, is assigned to variable x.

8. b, e.