Course
Simulator
More
Premium
Log in
Python Function Reference
Functions
capitalize
capitalize
Return a copy of the string with its first character capitalized and the rest lowercased.
Python 3.13
str
.
capitalize
(
)
Examples
Python 3.13
>>
>
'hello world'
.
capitalize
(
)
'Hello world'