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