demo_ref_list_reverse.py:
fruits = ['apple', 'banana', 'cherry'] fruits.reverse() print(fruits)
C:\Users\My Name>python demo_list_reverse.py
['cherry', 'banana', 'apple']