stringf replcae em python

txt = "hello bro"

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

print(x)
Real Rabbit