How to convert lowercase letters in string to uppercase in Python?

PythonServer Side ProgrammingProgramming

You can use the upper() method in Python to convert all lowercase letters in string to uppercase. For example:

>>> 'HellO'.upper()
HELLO
>>> 'leaning tower of pisa'.upper()
'LEANING TOWER OF PISA'
raja
Published on 12-Dec-2017 12:55:07
Advertisements