adplus-dvertising
frame-decoration

Question

What will be the output?
def m(list):
    v = list[0]
    for e in list:
      if v < e: v = e
    return v
 
values = [[3, 4, 5, 1], [33, 6, 1, 2]]
 
for row in values: 
    print(m(row), end = " ")

a.

3 33

b.

1 1

c.

5 6

d.

5 33

Posted under Python

Answer: (d).5 33

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output?