-
-
Save IndhumathyChelliah/c0d050df3fa03a37c0a37f2b0b63d859 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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