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 '
1string = ' xoxo love xoxo '
2
3# Leading and trailing whitespaces are removed
4print(string.strip())
5
6# All <whitespace>,x,o,e characters in the left
7# and right of string are removed
8print(string.strip(' xoe'))
9
10#