Python String upper() Method
Python String upper() method takes a string object and converts each of its characters to their corresponding uppercase characters. The string remains unaffected if all the characters in it are already in uppercase. The upper() method works with Unicode characters, unlike the lower() method, which works on ASCII characters.
Syntax:
The upper() returns a string having all the Unicode characters in the original string converted to uppercase characters.
The following example we can see that, in the output of the upper() method, all of the Unicode characters in the original string have been replaced without their uppercase forms. Even the character ß has been converted to its Uppercase form i.e SS.
# Python example of the lower() method,
txt ='Captain AMERICA ßaß'
x = txt.upper()
print(x)
Output: