M

Manisha Agrawal • 9.34K Points
Tutor III

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

Code:
n1=10
for n in range(10, 12):
    n1=n ** 2
    n1=n1-10
  • (A) 111 and 11
  • (B) 11 and 12
  • (C) 11 and 111
  • (D) 12 and 11
  • Correct Answer - Option(C)
  • Views: 135
  • Filed under category Python

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.

Be the first to start discuss.


Question analytics