In the following python code I am trying to create a 2D array, delete an element, and insert a new one in that same specified position. I am able to delete an element with a specified position, however when trying to insert I am getting the error: IndexError: list index out of range.
Thanks for any help
tda = []
for i in range(0,100):
if i % 10 == 0:
col = []
tda.append(col)
col.append(random.randint(0,10))
del tda[1][1]
tda.insert([1][1],5)