I am looking for a way to replace a characters in a sentence, given that we have:
sentence = "hello - world!: ¡hola - mundo"
I need to be it like that -> hello world hola mundo
I can do
sentence.replace('!' , '' )
sentence.replace(':' , '' )
.
.
.
But it doesn't seems a good solution
so far i have this, but it doesn't replace what I want:
for ch in ["!",":"]:
if ch in sentence:
sentence = sentence.replace(ch," " + ch)
any suggestions how to make it work? Thank you.