August 17, 2024
Change string in uppercase with upper function
You can convert a string into upper case (all letters in capital letters) with using upper function in Python. The example of upper method is mentioned below:
Code
greetingStr = "Good Morning"
result = greetingStr.upper()
print(result)