Is there a more pythonic and elegant way to replace multiple times a string without doing this in a list?
I want need to do multiple replaces with a string. So.
s = 'Helloooo'
pattern = ["a",, "b", "c"]
new = [s.replace(p, "") for p in patterns)]
This gives a list and I do not want to waste more lines with a for loop...
What is possible with python like?
new = s.replace(p, "") for p in patterns