upper() String Method in Python with Examples

upper() method converts all lowercase letter in string to uppercase.

Example: upper() String Method


message = 'WeLcOmE TO PYTHON 123'
print(message.lower())

# OR

message = 'WeLcOmE TO PYTHON 123'
print(str.lower(message))

Output

WELCOME TO PYTHON 123


Related String Methods