upper() function :# Convert a string to upper case
my_string = "Hello, World!"
uppercase_string = my_string.upper()
print("The upper case string is:", uppercase_string)The upper case string is: HELLO, WORLD!my_string`. We then use the `upper()` function to convert `my_string` to upper case, and assign the result to the variable `uppercase_string`.print()` function to print the message "The upper case string is:" followed by the value of `uppercase_string`.upper()` function converts all of the characters in the string to upper case.