1>>> papa = 'papa is a good man'
2>>> papa.replace('papa', '')
3' is a good man'
1s = "Earthworms and Python are disgusting!"
2s.replace('and Python ', '')
3print(s)
4#Run the code
5result = "Earthworms are disgusting!"
1text='ramkumar'
2text=text.replace("mku","") #'' is empty
3print(text)
4
5ans:
6ramar