Python String capitalize() method

The string.capitalize() method in Python returns a copy of the string with only its first character capitalized.

Syntax

Parameter

NA

Return

This function returns a string where the first character is upper case.

Example 1

Output

Example 2

Output

Example 3

Output

Pin It on Pinterest

Share This