Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. def strip_by_category(text):
  2. drop_chars = set("abcdefg")
  3. return "".join(c for c in text if c not in drop_chars)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement