A

Admin • 833K Points
Coach

Q. What will be the output of following python code?

Code:
values = [[3, 4, 5, 1], [33, 6, 1, 2]]
v = values[0][0]
for lst in values:
for element in lst:
if v > element:
v = element print(v)
  • (A) 3
  • (B) 1
  • (C) 2
  • (D) 33
  • Correct Answer - Option(B)
  • Views: 26
  • Filed under category Python
  • Hashtags:

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.