stringf Replcae в Python

txt = "hello bro"

x = txt.replace("hello", "bye")

print(x)
Real Rabbit