daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest May 16th, 2018 110 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top