demo_ref_string_replace.py:
txt "I like bananas" x = txt.replace("bananas", "apples") print(x)
C:\Users\My Name>python demo_string_replace.py
I like apples