Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # sort_names_by_last_demo.py
- names="Neil Downe Ike Arumba Marian Etz Al Cohal Helen Becc".split(' ')
- print sorted(names, key=lambda name: name.split()[-1].lower())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement