I have a list containing a number of ints and adding them to a second list at the index matching their value. The second list has already bin filled with placeholders ("X"). i.e:
firstlist = [2, 3, 5]
with the output:
secondlist = ['X', 'X', 2, 3, 'X', 5, 'X', 'X']
What is the best way to do so? Any help greatly appreciated!