From 8baf191718843b6d7ec333b1fccaa1a16815306d Mon Sep 17 00:00:00 2001 From: Stefan Harmuth Date: Sat, 4 Dec 2021 08:08:17 +0100 Subject: [PATCH] day04: hey, el stupido, split() defaults to "any number of whitespaces" ... --- day04.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/day04.py b/day04.py index ace523d..d3f83cc 100644 --- a/day04.py +++ b/day04.py @@ -4,7 +4,7 @@ from typing import Any class BingoCard: def __init__(self, numbers: str): - numbers = list(map(int, numbers.strip().replace(" ", " ").split(" "))) + numbers = list(map(int, numbers.strip().split())) self.fields = {} self.checked = {} for y in range(5):