I've written this code for removing characters from a string. I used the filter function but it returns the same list without modification.
a = "Hello !!!!, . / "
a1 = list(a)
def it(at):
k = at.copy()
charlist = [",", ".", "/", " ", ":", ";", "\'", "\"", "!"]
for x in charlist:
filter(lambda t: t != x, k)
print(k)
it(a1)