Teen pärast edasi
This commit is contained in:
15
5/advent_1.py
Executable file
15
5/advent_1.py
Executable file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python3
|
||||
|
||||
from dataclasses import dataclass
|
||||
|
||||
@dataclass
|
||||
class Range:
|
||||
start: int
|
||||
last: int
|
||||
|
||||
with open("data.txt") as file:
|
||||
lines = [line.rstrip() for line in file]
|
||||
|
||||
state = "seeds"
|
||||
for i in lines:
|
||||
match state:
|
||||
Reference in New Issue
Block a user