diff options
Diffstat (limited to '19')
| -rw-r--r-- | 19/py/d21.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/19/py/d21.py b/19/py/d21.py index 84f01ff..03ba4fc 100644 --- a/19/py/d21.py +++ b/19/py/d21.py @@ -2,14 +2,15 @@ import intcode def ascii_draw(a): s = "" + post = "" for c in a: if c == 10: s += "\n" elif c < 128: s += chr(c) else: - print("[INVALID ASCII]", c) - return s + post = "[INVALID ASCII]: " + str(c) + return s + ("\n" if post != "" else "") + post def do(c, jumpscript): output = [] |
