daily pastebin goal
20%
SHARE
TWEET

Untitled

a guest May 16th, 2018 107 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
Top