Python Function Reference

reverse
Reverse the elements of the list in place.
Python 3.13
list.reverse()
Examples
Python 3.13
>>> a = [1, 2, 3]
>>> a.reverse()
[3, 2, 1]