Skip to content

Latest commit

 

History

History
56 lines (45 loc) · 704 Bytes

File metadata and controls

56 lines (45 loc) · 704 Bytes

lower

Description

Returns a copy of the string in lower case.

Syntax

str. lower()

Return Value

str

Time Complexity

#TODO

Remarks

For 8-bit strings, this method is locale-dependent.

Example

>>> 'foo'.lower()
'foo'
>>> 'Foo'.lower()
'foo'
>>> 'FOO'.lower()
'foo'
>>> '123'.lower()
'123'
>>> ''.lower()
''
>>> '   '.lower()
'   '
>>> '!@#'.lower()
'!@#'

See Also

upper

capitalize

title

swapcase