Mạnh Cường
Member
What will be the output of the following Python code?
A.
1 4 7
2 5 8
3 6 9
B.
(1 4 7)
(2 5 8)
(3 6 9)
C. [(1, 4, 7), (2, 5, 8), (3, 6, 9)]
D. Error
Code:
l1=[1,2,3]
l2=[4,5,6]
l3=[7,8,9]
for x, y, z in zip(l1, l2, l3):
print(x, y, z)
1 4 7
2 5 8
3 6 9
B.
(1 4 7)
(2 5 8)
(3 6 9)
C. [(1, 4, 7), (2, 5, 8), (3, 6, 9)]
D. Error