Run »
txt = "one one was a race horse, two two was one too." x = txt.replace("one", "three", 2) print(x)
three three was a race horse, two two was one too."