Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def startswith_multi(string, chars):
- for char in chars:
- if string.startswith(char):
- return True
- return False
- # ...
- if startswith_multi(element, "bptsmdcgfl"):
- char1filter.append(element)
RAW Paste Data