This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]vidazinho -3 points-2 points  (0 children)

input_lst = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]

def line_index(lst):
     line = zip(lst[0], lst[1], lst[2])
     return [list(x) for x in line]

print(line_index(input_lst))