Print list of lists in separate lines
Iterate through every sub-list in your original list and unpack it in the print call with *: a = [[1, 3, 4], [2, 5, 7]] for s in a: print(*s) The separation is by default set to ‘ ‘ so there’s no need to explicitly provide it. This prints: 1 3 4 2 5 7 … Read more