diff options
| author | nekineki <nekineki@nekineki.net> | 2023-09-05 15:06:18 +0200 |
|---|---|---|
| committer | nekineki <nekineki@nekineki.net> | 2023-09-05 15:06:18 +0200 |
| commit | 0482427dc810215278e5d1307bf1ae509104d856 (patch) | |
| tree | 9b01076aa7b884560a14dd49f3cae8f178f65cd8 /2022 | |
| parent | 04089770e14092aade81669d3a6d0d970e6f8df9 (diff) | |
simplify template
Diffstat (limited to '2022')
| -rwxr-xr-x | 2022/tpl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/2022/tpl.py b/2022/tpl.py index 23c5987..46b9c03 100755 --- a/2022/tpl.py +++ b/2022/tpl.py @@ -9,7 +9,7 @@ import sys filename = "in/day .ref" # filename = "in/day .pzl" data = open(filename).read() -lines = [line for line in data.rstrip('\n').split('\n')] +lines = data.rstrip('\n').split('\n') print(lines) res1 = 0 |
