Reverse the elements in the list.
list.reverse()
The .reverse() method does not take in any arguments.
.reverse()
counting = [1, 2, 3, 4, 5] counting.reverse() print(counting)# Output: [5, 4, 3, 2, 1]
To reverse a list called hand:
hand
Favicon IconArrow Chevron Left IconCodeOutputArrow Chevron Right IconLoading...Run