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