Write a python function to remove a given word from a list and strip it at the same time.
amannarayanm · · Python
def remove_Split(string,word): string =string.replace(word,"") print(string.strip()) sentence = " Happy New Year buddy " remove_Split(sentence,"buddy")
Click on the Run button to get started.
The code/input has changed since you last clicked on Run. Click it again to see the updated changes.