Some times you may require to convert any string to uppercase (all letters). This tutorial will help to convert a string (any case) to the upper case as showing in the below image.
Advertisement
Convert String to Upper Case
Using Python programming language you can use string .upper()
function to convert any string to upper case. Here is the sample Python code to convert string to uppercase.
1 2 3 4 | >>> s = "Hello Python" >>> print(s.upper()) HELLO PYTHON |
Suggested reading
Some more examples of string conversions in Python.