In this article, you will see how to use the uppercase string method in Python. The uppercase means converting all letters to uppercase. In Python, you can use the upper()
method to uppercase a string.
Step 1: Create a string
Python
x
str = "codeallow"
print("str = ", str)
print("str type = ", type(str))
Step 2: Uppercase string
Python
print("Uppercased = ", str.upper())
Output:
str = codeallow
str type = <class 'str'>
Uppercased = CODEALLOW
Free resources to learn advanced skills: AiHints and CodeAllow