big letter -> small letter
Reinhold Birkenfeld
reinhold-birkenfeld-nospam at wolke7.net
Tue Jul 6 03:23:28 EDT 2004
Bernd Kaiser wrote:
> vertigo wrote:
>> Hello
>> How can i change big letter to small letter ?
>>
>> When i tried char=char+32 i received error that can not add int to sring.
>>
>> Thanx
>> Michal
>>
> Check out the String Modul
> http://python.org/doc/2.3.4/lib/module-string.html
Caution! Always use the functions of the str object itself, not the
correspondig method of the string module because the former is quicker.
There are cases where you need the string module, but they have become rare.
Instead of "string.upper(s)" use "s.upper()"
Reinhold
--
Wenn eine Linuxdistribution so wenig brauchbare Software wie Windows
mitbrächte, wäre das bedauerlich. Was bei Windows der Umfang eines
"kompletten Betriebssystems" ist, nennt man bei Linux eine Rescuedisk.
-- David Kastrup in de.comp.os.unix.linux.misc
More information about the Python-list
mailing list