How Can I Replace Text in a String

Python can take any string and replace text in it with the replace() function.

With the code below, we replace the word "sunny" with "rainy":

The original string was, "Today is sunny",
After the text.replace() function, we replace "sunny" with "rainy",
Thus, the string is now, "Today is rainy"