Guest User

Untitled

a guest
Aug 6th, 2016
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.22 KB | None | 0 0
  1. def startswith_multi(string, chars):
  2.     for char in chars:
  3.         if string.startswith(char):
  4.             return True
  5.     return False
  6.  
  7. # ...
  8.  
  9. if startswith_multi(element, "bptsmdcgfl"):
  10.     char1filter.append(element)
Add Comment
Please, Sign In to add comment