I got a list
a=[1,2,3]
b=[[1,2],[3,4,5]]
b=[[1,2],[1,2,3],[3,4,5]]
You can use list.insert which takes the index as the first argument
list.insert
index
>>> a=[1,2,3] >>> b=[[1,2],[3,4,5]] >>> b.insert(1, a) >>> b [[1, 2], [1, 2, 3], [3, 4, 5]]