day04: hey, el stupido, split() defaults to "any number of whitespaces" ... and ignores leading whitespaces ...
This commit is contained in:
parent
8baf191718
commit
1c0ce1b3d2
2
day04.py
2
day04.py
@ -4,7 +4,7 @@ from typing import Any
|
|||||||
|
|
||||||
class BingoCard:
|
class BingoCard:
|
||||||
def __init__(self, numbers: str):
|
def __init__(self, numbers: str):
|
||||||
numbers = list(map(int, numbers.strip().split()))
|
numbers = list(map(int, numbers.split()))
|
||||||
self.fields = {}
|
self.fields = {}
|
||||||
self.checked = {}
|
self.checked = {}
|
||||||
for y in range(5):
|
for y in range(5):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user