Home >>Python String Methods >Python String upper() Method

Python String upper() Method

Python String upper() Method

Python string upper() method is used to return a string where all the characters present in the string are in upper case. Symbols and Numbers present in the given string are ignored.

Syntax:
string.upper()
Here is an example of Python upper() method:

txt = "My name is jerry.."
x = txt.upper()
print(x)

Output:
MY NAME IS JERRY..
Example 2

txt = "phptpoint"
x = txt.upper()
print(x)

Output:
PHPTPOINT

No Sidebar ads