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