Python String upper() Method

Converts the letters a-z to uppercase.

Syntax

Python
string.upper()

Example

Python
print('Hello World!'.upper())

Output

HELLO WORLD!