demo_ref_list_insert.py:
fruits = ['apple', 'banana', 'cherry'] fruits.insert(1, "orange") print(fruits)
➜ begtut>python demo_list_insert.py
['apple', 'orange', 'banana', 'cherry']