by @saigowthamr

How to uppercase a string in Python

Home » python » How to uppercase a string in Python

To uppercase a string in python, we can use the upper() method.

Here is an example that converts lowercase string king to upper case.

a = "king"

print(a.upper()) # KING

Best Web Development courses