Python String upper() Method
ExampleGet your own Python Server
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
string.upper()
Parameter Values
No parameters