Facebook Page Twitter Page LinkedIn Page
× Python Tutorial Python Advanced Python Resources Python Libraries


The Python list reverse() method is used to reverse order of all elements of the list.

Syntax

list.reverse()

Parameters

No parameter is required.

Return Value

None.

Example:

In the below example, reverse() method is used to reverse order of all elements of the list called MyList.

MyList = ['APR', 'MAR', 'FEB', 'JAN', ]

MyList.reverse() 
print(MyList)

The output of the above code will be:

['JAN', 'FEB', 'MAR', 'APR']

❮ Python List Methods