Home / Programming MCQs / Python MCQs / Question

M

Manisha Agrawal • 9.32K Points
Tutor III

Q. What will be the value of ‘m’ and ‘n’ after execution of following code:

Code:
m = 3;
for n in range(2, 7, 2):
    n *= m
    n = n-1
(A) 3 and 15
(B) 3 and 17
(C) 5 and 17
(D) 5 and 15

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.