8.2.10.3.2. capitalizeΒΆ

Token.capitalize()

Return a capitalized version of the string.

More specifically, make the first character have upper case and the rest lower case.