For example list is L = [[1,2],[2,3],[3,4]] I want to print like
1 2
2 3
3 4
Try this:
for i in L:
for j in i:
print(j, end=" ")
print()
Use a for
loop and indexing:
>>> L = [[1, 2], [2, 3], [3, 4]]
>>> for i in L:
... print(i[0], i[1])
...
1 2
2 3
3 4