How do I insert a list into another list?
A[1:1] = B
A
will be [1, 4, 5, 6, 2, 3]
def insert(outer, inner, pos):
outer[pos:pos] = inner
A[1:1] = B
A
will be [1, 4, 5, 6, 2, 3]
def insert(outer, inner, pos):
outer[pos:pos] = inner