Python Function Reference

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'