0

I have two lists:

list1=[1,2,3]
list2=[0,0]

how would I code it so that it looks something like this:

list1=[1,0,2,0,3]

I know it involves looping, and I had something like this in mind, but it's not working

for items in zero:
   for position in list1:
jonrsharpe
  • 99,167
  • 19
  • 183
  • 334

0 Answers0