demo_ref_string_replace2.py:
txt = "one one was a race horse, two two was one too." x = txt.replace("one", "three") print(x)
C:\Users\My Name>python demo_string_replace2.py
three three was a race horse, two two was three too."