Advertisement
here2share

# sort_names_by_last_demo.py

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