Q.

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

A. 4
B. 7
C. 2
D. 0
Answer» B. 7
Explanation: the order of precedence is: %,+. Hence the expression above, on
simplification results in 4 + 3 = 7.
Hence the result is 7.
2.6k
0
Do you find this helpful?
23

Discussion

No comments yet