Languages
[Edit]
EN

Python - convert string to uppercase

3 points
Created by:
Khloe-Kaiser
578

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

References

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Python - string (popular problems)

Python - convert string to uppercase
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join