Python - String Method - upper() Tutorial
It converts all the lowercase characters in the string to uppercase. It does not modify the original string.
str1 = "welcome to fresherbell PYTHON tutorial"
print(str1.upper())
print(str1)
Output-
WELCOME TO FRESHERBELL PYTHON TUTORIAL
welcome to fresherbell PYTHON tutorial
In the above program, all lower case character in string str1 is converted into uppercase. But, it does not modify the original string.