Web Analytics

Python list.reverse() Method

List Method Reverse

The reverse() method reverses the sorting order of the elements.

Syntax

list.reverse()

Parameters

No parameters.

Return Value

None. The list is modified in place.

Example

Using the reverse() method:

Output
Click Run to execute your code

Related Functions