Answers to questions on arithmetic expressions

Which of the following is an arithmetic expression?

  1. 3 + 2
    Yes, this is a straightforward arithmetic expression.

  2. 3>2
    Yes, a comparison gives the value 1 (True) or 0 (False).

  3. i=3
    Yes, an assignment can be used as an expression, with value equal to the value being assigned.

Answers to these questions.


Back to notes on arithmetic expressions.