Source Code:
(back to article)
fruits = ['apple', 'banana', 'orange'] fruits.insert(1, 'grape') print(fruits) # Output: ['apple', 'grape', 'banana', 'orange']
Result:
Report an issue