Upper case and lower case in Python

Upper Case

In order to upper case, we use upper() method:

a = "Hello, its time to learn, LearDuty"
print(a.upper())

Output:

HELLO, ITS TIME TO LEARN, LEARDUTY




Lower Case

In order to lower case, we use lower() method:

a = "Hello, its time to learn, LearDuty"
print(a.lower())

Output:

hello, its time to learn, learduty
Bilel A

Bilel A

0 0 votes
Article Rating
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Learn Duty
0
Would love your thoughts, please comment.x
()
x