Report Bug

Qus: <p>What will be the output of the following Python code?</p><pre>values = [[3, 4, 5, 1 ], [33, 6, 1, 2]]<br>for row in values:<br>&nbsp; &nbsp; row.sort()<br>&nbsp; &nbsp; for element in row:<br>&nbsp; &nbsp; &nbsp; &nbsp; print(element, end = " ")<br>&nbsp; &nbsp; print()</pre>

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


A. प्रोग्राम दो रो 3 4 5 1 को प्रिंट करता है और उसके बाद 33 6 1 2
B. प्रोग्राम रो 3 4 5 1 33 6 1 2 पर प्रिंट करता है
C. प्रोग्राम दो रो 3 4 5 1 को प्रिंट करता है और उसके बाद 33 6 1 2
D. प्रोग्राम दो रो 1 3 4 5 प्रिंट करता है और उसके बाद 1 2 6 33


Solution
D. The program prints two rows 1 3 4 5 followed by 1 2 6 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