Response 1
Response 1
Python provides a range of operations for manipulating lists, such as adding, removing, and sorting
items.
Adding Elements
append(): Adds a single element at the end of the list.
extend(): Adds multiple elements from another list (or iterable) to the end.
shopping_cart.append("mouse")
print(shopping_cart) # Output: ["laptop", "headphones", "notebook", "mouse"]