adplus-dvertising
frame-decoration

Question

What will be the output?
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 3 4 5 1 followed by 33 6 1 2

d.

The program prints two rows 1 3 4 5 followed by 1 2 6 33

Posted under Python

Answer: (d).The program prints two rows 1 3 4 5 followed by 1 2 6 33

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What will be the output?