15 lines
238 B
Python
Executable File
15 lines
238 B
Python
Executable File
#!/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: |