How to Get String in Upper Case in Python


In this example, we will learn how to get the string in upper case using the upper() method in Python.

Source Code

my_str = 'Python'

print(my_str)
print(my_str.upper())

Output:

Python
PYTHON
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Advertisement