WeCodeAcademy
❮ list.sort()list.index() ❯

list.reverse()

Reverses the list in place.

Group: List

Syntax

list.reverse()

Example

Examplepython
Open in editor »

← All of Python Reference