Say I have a Python list like this:
letters = [\'a\',\'b\',\'c\',\'d\',\'e\',\'f\',\'g\',\'h\',\'i\',\'j\']
I want to insert an \'x\' after
I want to add a new element per item.
How about this ?
a=[2,4,6] for b in range (0,len(a)): a.insert(b*2,1)
a is now
[1, 2, 1, 4, 1, 6]