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
πŸ’¬ Discuss
βœ… Correct Answer: (B) 3 and 17

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
258
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Manisha Agrawal
Publisher
πŸ“ˆ
98%
Success Rate