SyntaxFix
Write A Post
Hire A Developer
Questions
I think the Python method insert is what you're looking for:
Inserts element x at position i. list.insert(i,x)
array = [1,2,3,4,5] array.insert(1,20) print(array) # prints [1,2,20,3,4,5]