def tr(s: str, character_to_remove: str): for c in list(character_to_remove): s = s.replace(c, "")