Report Bug

Qus: <p>What will be the output of the following Python code?</p><pre>def m(list):<br>&nbsp; &nbsp; v = list[0]<br>&nbsp; &nbsp; for e in list:<br>&nbsp; &nbsp; &nbsp; &nbsp; if v &lt; e:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; v = e<br>&nbsp; &nbsp; return v<br>&nbsp; &nbsp;<br>values = [[3, 4, 5, 1], [33, 6, 1, 2]]&nbsp; &nbsp;<br>for row in values:&nbsp;<br>&nbsp; &nbsp; &nbsp; print(m(row), end = " ")</pre>

Qus<p>निम्नलिखित Python कोड का आउटपुट क्या होगा?</p><pre style="font-size: 12.6px; letter-spacing: 0.14px;">def m(list):<br>&nbsp; &nbsp; v = list[0]<br>&nbsp; &nbsp; for e in list:<br>&nbsp; &nbsp; &nbsp; &nbsp; if v &lt; e:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; v = e<br>&nbsp; &nbsp; return v<br>&nbsp; &nbsp;<br>values = [[3, 4, 5, 1], [33, 6, 1, 2]]&nbsp; &nbsp;<br>for row in values:&nbsp;<br>&nbsp; &nbsp; &nbsp; print(m(row), end = " ")</pre>


A. 3 33
B. 1 1
C. 5 6
D. 5 33


Solution
D. 5 33



Explanation
Execute in the shell to verify.
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test , CCC MCQ Python Coding Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Website development Company in Allahabad