ID EN
Built-in Types

capitalize

Python 3.11

Return a copy of the string with its first character capitalized and the rest lowercased.

Syntax

PYTHON
str.capitalize()