here problem is, I have the python string like "I love daddy and I love mom".in this string what I want is, "I love mom and I love daddy".
here is the python string
s='i love dad and i love mom',
s1=s.replace('dad','mom'),
print(s1)
Here is the output is : i love mom and i love mom
But i need the output is : i love mom and i love dad