range of characters?

Batista, Facundo FBatista at uniFON.com.ar
Tue Dec 16 19:34:25 CET 2003


Bud P. Bruegger wrote:

#- I suppose there should be an elegant way of getting a range 
#- of characters 
#- as in
#- 
#- range('A', 'Z')

Python 2.2.3 (#1, Jun 18 2003, 16:30:09)
[GCC 3.2.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import string
>>> string.letters[26:]
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

.	Facundo





More information about the Python-list mailing list