l1 = [1,3,5,7,9]
l2 = [2,4,6,8,10]
index = 0
for i in range(1,11,2):
l1.insert(i, l2[index])
index += 1
print(l1)
1 Like
It is appending the value of L2 in L1 by using for loop at every odd places.
Can you be more specific want you want to know in it?
1 Like
I understood that. Thanks for making it clear with one sentence.
1 Like