transformation

str.lower

Returns a copy of the string with all cased characters converted to lowercase. Uses Unicode simple lowercase mappings.

str.lower()

Parameters

Parameter Purpose
self operates on the calling string; takes no arguments
returns new lowercased str (original unchanged — str is immutable)

Examples

>>> 'Hello, World!'.lower()
'hello, world!'

cased letters become lowercase

>>> 'PYTHON3'.lower()
'python3'

digits unaffected

>>> 'STRAßE'.lower()
'straße'

ß stays ß (unlike upper/casefold which expand it)

>>> 'ÄÖÜ'.lower()
'äöü'

handles accented characters

Gotcha

For robust case-insensitive comparison prefer casefold() — lower() misses full Unicode folding (e.g. 'ß' vs 'ss', Turkish 'İ').

Related methods

← All Python string methods · Python built-ins