demo_ref_list_remove.py:
fruits = ['apple', 'banana', 'cherry'] fruits.remove("banana") print(fruits)
➜ begtut>python demo_list_remove.py
['apple', 'cherry']