Python String upper() method

The string.upper() method in Python returns a copy of the string converted to uppercase.

Syntax

Parameter

NA

Return

This method returns a copy of the string converted to uppercase.

Example 1

Output

Example 2

Output

Pin It on Pinterest

Share This