Created
June 20, 2020 07:29
-
-
Save arrbxr/970aa8b2df8a12bafdd7a26c50360151 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
name = ["abhishek", "abhishek raj", "kumar soun", "raj kumar" "pagla ravi", "simpee singh" ] | |
name.sort(key = lambda nm: nm.sort(" ")[-1]) | |
print name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment