Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
>>> spam = ['first', 'second', 'last']
>>> spam
['first', 'second', 'last']
>>> spam.sort()
>>> spam
['first', 'last', 'second']
>>> spam.append(1)
>>> spam
['first', 'last', 'second', 1]
>>> spam.sort()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: unorderable types: int() < str()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.