marrcandre

xmas tree

May 14th, 2013
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. #!/usr/bin/env python
  2. #coding: utf-8
  3.  
  4. nomes = [nome.strip() for nome in open("nomes.txt").readlines()]
  5. nomes.sort(key=len)
  6.  
  7. for nome in nomes:
  8.     print "%s" %(nome.center(30))
Advertisement
Add Comment
Please, Sign In to add comment