#You can remove a word from a string using str.replace ()
myString = 'papa is a good man'
newString = myString.replace('papa', '')
>>>' is a good man'
#you can use replace function to remove specific word.
>>> message = 'you can use replace function'
>>> message.replace('function', '')
>>>'you can use replace '
#you can use replace function to remove specific word.
message = 'you can use replace function'
message = message.replace('function', '')
print(message)
a_string = "addbdcd"
a_string = a_string.replace("d", "")
print(a_string)
s="Hello$ Python3$"s1=s.replace("$","",1)print (s1)#Output:Hello Python3$