P

Parvesh Kanani • 2.84K Points
Extraordinary

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: 165
  • 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.


Question analytics