Is there a simple function to generate a list like ['a', 'b', 'c', ... 'z']?

人言落日是天涯,望极天涯不见家 kelvin.you at gmail.com
Mon Apr 9 04:41:30 EDT 2007


On Apr 9, 4:35 pm, Michael Bentley <mich... at jedimindworks.com> wrote:
> On Apr 9, 2007, at 3:29 AM, 人言落日是天涯,望极天涯不
>
> 见家 wrote:
> > Is there a simple function to generate a list like ['a', 'b', 'c', ...
> > 'z']?   The range() just can generate the numeric list.
>
> import string
> list(string.lowercase)

Thanks a lot!


More information about the Python-list mailing list