Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created June 24, 2020 06:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/c0d050df3fa03a37c0a37f2b0b63d859 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/c0d050df3fa03a37c0a37f2b0b63d859 to your computer and use it in GitHub Desktop.
#list containing mixed data types
l1=[1,'a',2]
print (sorted(l1))
#Output:TypeError: '<' not supported between instances of 'str' and 'int'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment