extend
insert
remove
Inserts an item at a given position.
list.insert(i, item)
Enter values below to update the example in real time.
nums
print
nums = [1, 2, 4, 5] nums.insert(2, 3) print(nums) # [1, 2, 3, 4, 5]