summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--19/py/d21.py5
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 = []