@anonymous/

WorriedHumbleHypermedia

Python

No description

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.8342964684033687","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"Yml6TmFtZXMgPSB7CiAgImRvd25ob21lIHJlc3RhdXJhbnQgJiBjYXRlcmluZyIsCiAgImZvcmJpZGRlbiBnYXJkZW4gY2hpbmVzZSByZXN0YXVyYW50IiwKICAiZm9yYmlkZGVuIGdhcmRlbiBjaGluZXNlIHJlc3RhdXJhbnQgY29ycC4iLAogICJjYWx2aW4ncyByZXN0YXVyYW50ICYgbG91bmdlIiwKICAicHl0aG9uIgp9CmJsYWNrbGlzdCA9IHsncmVzdGF1cmFudCcsICdzdHVmZid9CmNsZWFuQml6TmFtZXMgPSBzZXQoKQoKZm9yIG5hbWUgaW4gYml6TmFtZXM6CiAgaWYgbm90IGJsYWNrbGlzdCAmIHNldChuYW1lLnNwbGl0KCkpOgogICAgY2xlYW5CaXpOYW1lcy5hZGQobmFtZSkKCmZvciBuYW1lIGluIGNsZWFuQml6TmFtZXM6CiAgcHJpbnQobmFtZSk="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
bizNames = {
  "downhome restaurant & catering",
  "forbidden garden chinese restaurant",
  "forbidden garden chinese restaurant corp.",
  "calvin's restaurant & lounge",
  "python"
}
blacklist = {'restaurant', 'stuff'}
cleanBizNames = set()

for name in bizNames:
  if not blacklist & set(name.split()):
    cleanBizNames.add(name)

for name in cleanBizNames:
  print(name)