EN
Python - convert string to uppercase
3
points
In this article, we would like to show you how to convert string to uppercase in Python.
Quick solution:
text = "abc"
print(text.upper()) # ABC
Practical example
In this example, we use upper()
method to uppercase the string.
text = "abc"
print(text.upper()) # ABC
Output:
ABC