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