Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
>>> a = [3, 2, 1]
>>> sorted(a)
[1, 2, 3]
>>> a
[3, 2, 1]
>>> a.sort()
>>> a
[1, 2, 3]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment