demo_ref_string_replace.py:
txt "I like bananas" x = txt.replace("bananas", "apples") print(x)
➜ begtut>python demo_string_replace.py
I like apples