print a ... z, A ... Z, "\n"' in Python

Troy Melhase troy.melhase at gmail.com
Sat Mar 3 03:20:16 EST 2007


> How do you write Perl's
>
>     print a ... z, A ... Z,  "\n"' in Python
>
>
> In Python?

you might consider this cheating, but it's packed with zen goodness:

>>> import string
>>> print string.letters
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ



More information about the Python-list mailing list