A = [[1, 2, 3], [2, 3, 4], [4, 5, 6]]
I am trying my best to print A of the form:
A
1 2 3 2 3 4 4 5 6
That
The same question was answered by Jim Fasarakis Hilliard in Print list of lists in separate lines.
In Python 3.x we can use:
A = [[1, 2, 3], [2, 3, 4], [4, 5, 6]] for i in A: print(*i)
And the corresponding output is: