[Tutor] wiki madness
Jeff Shannon
jeff at ccvcorp.com
Fri Aug 8 18:30:31 EDT 2003
Kirk Bailey wrote:
>> * no need to define caps, just use string.ascii_uppercase (and
>> lowercase is there too)
>>
> 1. nosuchfunction listed in the string module docs. Please advise.
>>> import string
>>> string.ascii_lowercase
'abcdefghijklmnopqrstuvwxyz'
>>> string.ascii_uppercase
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
>>> string.punctuation
'!"#$%&\'()*+,-./:;<=>?@[\\]^_`{|}~'
>>>
They're data (strings), not functions, so they'd probably be listed in a
different part of the docs.
Jeff Shannon
Technician/Programmer
Credit International
More information about the Tutor
mailing list