small medium large xlarge

 

PracProg2basic

Hello, Python

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.

Page History
  • V25: India Amos [over 2 years ago]
  • V24: Jennifer Campbell [over 2 years ago]
  • V17: Jennifer Campbell [over 2 years ago]
  • V23: System [over 2 years ago]
  • V16: Jennifer Campbell [over 2 years ago]
  • V15: Jennifer Campbell [over 2 years ago]
  • V22: System [over 2 years ago]
  • V14: Jennifer Campbell [over 2 years ago]
  • V21: System [over 2 years ago]
  • V13: Jennifer Campbell [over 2 years ago]