fruits = ["apple","charry","orange"] fruits.extend(("banana","guava","rasbarrry")) print(fruits) #remove items from list fruits.remove("apple") print(fruits)
Here is what the above code is Doing:
1. Creating a list of fruits.
2. Adding more fruits to the list.
3. Removing an item from the list.