From 5e7d313884f569bee5ec0ddb85c3b84f142499aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Mon, 9 Dec 2019 07:45:31 +0100 Subject: Fix output --- solutions/py/d08.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solutions/py/d08.py b/solutions/py/d08.py index f889918..7df2aec 100644 --- a/solutions/py/d08.py +++ b/solutions/py/d08.py @@ -23,10 +23,10 @@ def pt2(input): result[y][x] = layer[y][x] str_res = [] for row in result: + str_res.append("\n ") for c in row: str_res.append('\u2588' if c == 1 else ' ') - str_res.append("\n") - return "\n" + ("".join(str_res)) + return "".join(str_res) if __name__ == "__main__": import cProfile -- cgit v1.2.1