Python String upper() Method

Example

Uppercase String:

txt = "Hello my friends"
x = txt.upper()
print(x)

Run Instance

Definition and Usage

The upper() method returns a string with all characters in uppercase.

Symbols and numbers will be ignored.

Syntax

string.upper()

Parameter Value

No Parameters