The upper Method in Python: Converting String Characters to Uppercase

The upper method returns a copy of the original string with characters converted to uppercase. The algorithm for converting to uppercase is detailed in paragraph 3.13 of the Unicode standard.

upper()

'SoMe Elephants'.upper()  # Output: 'SOME ELEPHANTS'