Python String upper() Method
❮ String Methods
Example
Upper case the string:
txt = "Hello my friends"
x = txt.upper()
print(x)
Try it Yourself »
Definition and Usage
The upper()
method returns a string where
all characters are in upper case.
Symbols and Numbers are ignored.
Syntax
Parameter Values
No parameters
❮ String Methods