Guest User

Untitled

a guest
May 16th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. import string
  2.  
  3. list = []
  4.  
  5. names = open("/Users/bpiche/Desktop/names.txt")
  6.  
  7. while 1:
  8.     line = names.readline()
  9.     list.append(line)
  10.     if not line: break
  11.    
  12. list.sort()
  13.  
  14. print list[1::3]
  15. print list[2::3]
  16. print list[3::3]
  17.        
  18. names.close()
Add Comment
Please, Sign In to add comment