DEV Community

Cover image for Table
llocustjr-web
llocustjr-web

Posted on

Table

TABLE =
PUNCT = {}
for a, an, b, bn in TABLE:
PUNCT = an
PUNCT = bn

def decode(text):
t = text.replace(" ", "")
out, chunk = , ""
for ch in t:
if ch in PUNCT:
out.append(chunk + ch)
chunk = ""
else:
chunk += ch
out.append(chunk)
return " ".join(out)

Top comments (0)