Python String upper() Method
Converts the letters a-z to uppercase.
Syntax
Python
Copy Code
string.upper()
Example
Python
Copy Code
print('Hello World!'.upper())
Output
HELLO WORLD!
Converts the letters a-z to uppercase.
string.upper()
print('Hello World!'.upper())
HELLO WORLD!