Python Practice › String Programs › Program 38
Convert to uppercase
Write a Python program to convert all the characters in a string to uppercase.
Input
"I live in pune"
Output
I LIVE IN PUNE
Approach
- Use
upper().
Solution
print("I live in pune".upper())Output
I LIVE IN PUNE
Learn the concept
New to this topic? Read the lesson, then come back.