Computer Science, asked by dy1919920, 4 months ago

What will be the value of the following Python expression?
4 + 3 % 5​

Answers

Answered by adventureisland
11

The precedence of operators is " percent " first, then " + ".  Result for this     [ 4 + 3 % 5​ ] Expression is 7.

Python expression :

  • An expression consists of a set of values, variables, operators, and function calls.
  • It is necessary to evaluate expressions. When you tell Python to print an expression, the interpreter evaluates it and outputs the result.
  • The precedence of operators is " percent " first, then " + ". As a result of the above expression, on simplification Assume that 4+(3 % 5) = 3 % 5 = 3. As a result, the next step is 4 + 3 = 7.

Answered by himanisahooss
0

Answer:

answer is 7

hope this help you

Similar questions