demo_ref_list_append.py:
fruits = ["apple", "banana", "cherry"] fruits.append("orange") print(fruits)
➜ begtut>python demo_list_append.py
['apple', 'banana', 'cherry', 'orange']