205k views
5 votes
What will be the output? values = [[3, 4, 5, 1], [33, 6, 1, 2]] for row in values: () 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 one 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

1 Answer

2 votes

Answer: b)

Explanation: see image

What will be the output? values = [[3, 4, 5, 1], [33, 6, 1, 2]] for row in values-example-1
User Mackshkatz
by
8.3k points

No related questions found