How to uppercase the string in Python
In this tutorial, we are going to learn how to uppercase the given string in Python language.
Uppercase a string
To uppercase a string, we can use the built-in string.upper()
method in Python.
Here is an example, that converts the lowercase string king
to a uppercase:
a = "king"
print(a.upper())
Output:
"KING"