How to Convert Lowercase to Uppercase in Python
The upper()
method in Python converts the lowercase letters to uppercase. This built-in function doesn’t take any parameters. Returns an uppercased string of the given string.
org_string = "PytHon poInt" print("Original String: " + org_string) print("Converted String: " + org_string.upper())
Output:
Original String: PytHon poInt Converted String: PYTHON POINT
Subscribe
Login
Please login to comment
0 Discussion