diff options
| author | Gustav Sörnäs <gusso230@student.liu.se> | 2019-12-09 07:45:31 +0100 |
|---|---|---|
| committer | Gustav Sörnäs <gusso230@student.liu.se> | 2019-12-09 09:20:25 +0100 |
| commit | 5e7d313884f569bee5ec0ddb85c3b84f142499aa (patch) | |
| tree | 2e0ee0cbcfc39c4137f0282397f255b5efa35dcd /solutions | |
| parent | 466ba28aba9ee6ab37b99c8c22ae76518af79a05 (diff) | |
| download | aoc-5e7d313884f569bee5ec0ddb85c3b84f142499aa.tar.gz | |
Fix output
Diffstat (limited to 'solutions')
| -rw-r--r-- | solutions/py/d08.py | 4 |
1 files 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 |
