For homework I am trying to strip a set of characters inputted from the user from a sentence inputted by a user. This is the code that I have come up with so far using Python 2.7:
sentence = raw_input("Please write a sentence. ")
remove = raw_input("Please input characters to remove from sentence. ")
remove = remove.strip(" ") # in case user added spaces
sentence = sentence.strip(remove)
print sentence