Generate alphabet?
Wojtek Walczak
gminick at bzt.bzt
Fri Aug 22 18:07:24 EDT 2008
On Fri, 22 Aug 2008 15:02:19 -0700 (PDT), ssecorp wrote:
> In Haskell I can do [1..10] for range(1,11) and ['a'..'z'] for a list
> of the alphabet.
>
> Is there a way in Python to generate chars?
It's not actually about generating anything, but why should
one generate something if it's accessible anyway:
import string
print string.letters
--
Regards,
Wojtek Walczak,
http://tosh.pl/gminick/
More information about the Python-list
mailing list