MCQ Answer

<p>What will be the output of the following Python code?</p><pre>values = [[3, 4, 5, 1], [33, 6, 1, 2]]<br>v = values[0][0]<br>for lst in values:<br>&nbsp; &nbsp; for element in lst:<br>&nbsp; &nbsp; &nbsp; &nbsp; if v &gt; element:<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; v = element<br>print(v)</pre><div><br></div>

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



निम्नलिखित Python कोड का आउटपुट क्या होगा?

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)
Topic : Sequence data types in python

A. 1

B. 3

C. 5

D. 6




Correct Answer is :

A. 1



Explanation
Execute in the shell to verify.
Latest Current Affairs 2024 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2024 Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz