Vidyalelo
Python · Q94

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 94

Q94

What will be the output of the following Python code? values = [[3, 4, 5, 1 ], [33, 6, 1, 2]] for row in values: row.sort() for element in row: print(element, end = " ") print()

A.
The program prints two rows 3 4 5 1 followed by 33 6 1 2
B.
The program prints on row 3 4 5 1 33 6 1 2
C.
The program prints two rows 1 3 4 5 followed by 1 2 6 33
Answer
D.
None of the above

Answer: Option C

Solution

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