M

Mr. Dubey • 52.70K Points
Coach

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

(A) 4
(B) 7
(C) 2
(D) 0
Share

Explanation by: Mr. Dubey
 the order of precedence is: %,+. Hence the expression above, on
simplification results in 4 + 3 = 7.
Hence the result is 7.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Loading Comments....

Question analytics