Guest User

Untitled

a guest
Jul 19th, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. for c in xrange( 'a', 'z' ):
  2. print c
  3.  
  4. for c in xrange(ord('a'), ord('z')+1):
  5. print chr(z) # resp. print unicode(z)
  6.  
  7. def char_range(c1, c2):
  8. """Generates the characters from `c1` to `c2`, inclusive."""
  9. for c in xrange(ord(c1), ord(c2)+1):
  10. yield chr(c)
  11.  
  12. for c in char_range('a', 'z'):
  13. print c
  14.  
  15. import string
  16. for char in string.ascii_lowercase:
  17. print char
  18.  
  19. for c in map(chr, xrange(97, 123)):
  20. print c
Add Comment
Please, Sign In to add comment