Character Sequence Generation

Jeff Schwab jeffrey.schwab at rcn.com
Fri Sep 23 00:12:27 EDT 2005


mensanator at aol.com wrote:
> Jeff Schwab wrote:
> 
>>What's the best way to generate a sequence of characters in Python?  I'm
>>looking for something like this Perl code: 'a' .. 'z' .
> 
> 
>>>>import string
> 
> 
>>>>print string.ascii_lowercase
> 
> abcdefghijklmnopqrstuvwxyz

Thanks.  Is there a good way to generate the characters dynamically?



More information about the Python-list mailing list