Answer:
Step-by-step explanation:
Operators and Expressions in Python
Most lines of code are expressions. For example: 1 + 2 is an expression. The expression has 2 parts:
The (+) operator is a functional represented as symbols (for example, + ==) or reserved words (for example, and not).
Operands (1 and 2) are the data to be operated on.
An expression in Python consists of an operator and operands.
An expression in Python consists of an operator and operands.
After the Python interpreter evaluates the expression, we can, as in the example above, assign the result to the sum variable. Or, for example, immediately display the result on the screen:
>>> print(1 + 2)
3
Comparison Operators
Consider a simple example - 1 + 2 == 3.
To test the truth of a given condition, a boolean type is used. When we execute this expression, the result will be True (true) or False (false).
>>> 1 + 2 == 3
True