fork download
  1. def mulipleReplace(text):
  2. return "".join(["" if char in ".!?," else char for char in text])
  3. print(mulipleReplace("abc.def"))
  4.  
  5. #https://pt.stackoverflow.com/q/361551/101
Success #stdin #stdout 0.01s 27616KB
stdin
Standard input is empty
stdout
abcdef