Create a gist now

Instantly share code, notes, and snippets.

>>> 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