Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import string
- list = []
- names = open("/Users/bpiche/Desktop/names.txt")
- while 1:
- line = names.readline()
- list.append(line)
- if not line: break
- list.sort()
- print list[1::3]
- print list[2::3]
- print list[3::3]
- names.close()
Add Comment
Please, Sign In to add comment