0

list.reverse()

How does the list.reverse() method works in python ???

22nd Oct 2020, 12:21 AM
Umar Haque
Umar Haque - avatar
1 ответ
+ 1
The reverse() method is part of the list class/module and reverses the elements of the list in place. Meaning the actual list itself is changed, not a copy. https://docs.python.org/3/tutorial/datastructures.html
22nd Oct 2020, 12:26 AM
ChaoticDawg
ChaoticDawg - avatar