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