What's the pythonic way of generating a range of chars?
Question: In other languages, I would use a construct like this:

    
    
    a..z
    

I couldn't come up with a better solution than this:

    
    
    [chr(x) for x in range(ord("a"), ord("z") + 1)]
    

Is there a shorter, more readable way of building such a list ?


Answer: Not necessarily great if you want to do something other than a to z, but you
can do this:

    
    
    from string import ascii_lowercase
    for c in ascii_lowercase:
        print c
    

