WeCodeAcademy
❮ list.pop()list.reverse() ❯

list.sort()

Sorts the list in place.

Group: List

Syntax

list.sort(key=None, reverse=False)

Example

Examplepython
Open in editor »

← All of Python Reference