πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) 11 and 111

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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