Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for c in xrange( 'a', 'z' ):
- print c
- for c in xrange(ord('a'), ord('z')+1):
- print chr(z) # resp. print unicode(z)
- def char_range(c1, c2):
- """Generates the characters from `c1` to `c2`, inclusive."""
- for c in xrange(ord(c1), ord(c2)+1):
- yield chr(c)
- for c in char_range('a', 'z'):
- print c
- import string
- for char in string.ascii_lowercase:
- print char
- for c in map(chr, xrange(97, 123)):
- print c
Add Comment
Please, Sign In to add comment