1#You can remove a word from a string using str.replace ()
2myString = 'papa is a good man'
3newString = myString.replace('papa', '')
4>>>' is a good man'
1#you can use replace function to remove specific word.
2message = 'you can use replace function'
3message = message.replace('function', '')
4print(message)
1#you can use replace function to remove specific word.
2>>> message = 'you can use replace function'
3>>> message.replace('function', '')
4>>>'you can use replace '