demo_ref_list_pop2.py:
fruits = ['apple', 'banana', 'cherry'] x = fruits.pop(1) print(x)
C:\Users\My Name>python demo_list_pop2.py
banana