206k views
2 votes
Write a program to convert all the lowercase letters in a string into uppercase. Save the result back to the original location of the string.

User Yezenia
by
8.6k points

1 Answer

7 votes

Final answer:

To convert all lowercase letters in a string to uppercase, use the upper() function in programming languages like Python.

Step-by-step explanation:

To convert all the lowercase letters in a string into uppercase, you can use the built-in function upper() in various programming languages. Here is an example in Python:


string = "hello world"
string = string.upper()
print(string)

This will output:HELLO WORLD

User Richard Hubley
by
7.3k points