Python Practice › String Programs › Program 38

Convert to uppercase

EasyString Programs · 38 of 106

Write a Python program to convert all the characters in a string to uppercase.

Advertisement
Input
"I live in pune"
Output
I LIVE IN PUNE

Approach

  1. Use upper().

Solution

Python
print("I live in pune".upper())
Output
I LIVE IN PUNE
Advertisement

Learn the concept

New to this topic? Read the lesson, then come back.

More string programs

← All 106 String Programs