Guest User

Untitled

a guest
Jul 17th, 2018
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. from operator import itemgetter
  2.  
  3. people_info = []
  4. while True:
  5. individual_info = input()
  6.  
  7. if individual_info == "":
  8. break
  9. else:
  10. people_info.append(tuple((individual_info.split(","))))
  11.  
  12. people_info.sort(key = itemgetter(0, 1, 2))
  13. print(people_info)
Add Comment
Please, Sign In to add comment