Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.12 KB | None | 0 0
  1. def replace_chars(text):
  2. chars = ",.?!"
  3. for c in chars:
  4. if c in text:
  5. text = text.replace(c, '')
  6. return text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement