#you can use replace function to remove specific word. message = 'you can use replace function' message = message.replace('function', '') print(message)