.reverse()

.reverse()

Reverse the elements in the list.

Syntax

Loading...

The .reverse() method does not take in any arguments.

Example 1

Loading...

Example 2

To reverse a list called hand:

Interested in helping build Docs? Read the Contribution Guide or share your feedback.

Learn Python on Codecademy