Vidyalelo
Python · Q98

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 98

Q98

What will be the output of the following Python code? 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
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board