aboutsummaryrefslogtreecommitdiff
path: root/2021
diff options
context:
space:
mode:
authorThomas Voss <thomasvoss@live.com> 2021-12-12 01:41:54 +0100
committerThomas Voss <thomasvoss@live.com> 2021-12-12 01:41:54 +0100
commite11577db2b9af3451a727353bb9e928f614774b2 (patch)
treeac0e79c1a5d888736848d6c953aecb96cde97d4d /2021
parentce1aa028b265c70235dd1f79df24a1ecc2b75583 (diff)
Use a map
Diffstat (limited to '2021')
-rwxr-xr-x2021/08/puzzle-2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/2021/08/puzzle-2.py b/2021/08/puzzle-2.py
index c90e07c..85854f9 100755
--- a/2021/08/puzzle-2.py
+++ b/2021/08/puzzle-2.py
@@ -44,7 +44,7 @@ def solve(nums: list[str]) -> int:
def main() -> None:
with open("input", "r", encoding="utf-8") as f:
- print(sum(solve(line) for line in map(lambda l: l.strip().split(), f.readlines())))
+ print(sum(map(solve, map(lambda l: l.strip().split(), f.readlines()))))
if __name__ == "__main__":