List Operations: Append, Remove, Sort in Python


Modify lists with various methods.

Source Code

fruits.append("orange")  # Add an item
fruits.remove("banana")  # Remove an item
fruits.sort()            # Sort the list
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments