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