Advertisement
WupEly

Untitled

Mar 2nd, 2023
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. def parchment(m, divisor=' '):
  2. global snuffbox
  3. s = list(snuffbox[:])
  4. for i in range(len(s)):
  5. b = list(s[i])
  6. sp = []
  7. for f in range(len(b)):
  8. if b[f] not in m:
  9. sp.append(b[f])
  10. s[i] = divisor.join(set(sp))
  11. snuffbox = tuple(s)
  12.  
  13.  
  14. snuffbox = ('black', 'powder', 'piece', 'parchment')
  15. parchment('mutabor', divisor=';')
  16. print(snuffbox)
  17.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement