demo_ref_list_extend2.py:
fruits = ['apple', 'banana', 'cherry'] points = (1, 4, 5, 9) fruits.extend(points) print(fruits)
➜ begtut>python demo_list_extend2.py
['apple', 'banana', 'cherry', 1, 4, 5, 9]