Teen pärast edasi
This commit is contained in:
1 parent
0309f0c73a
commit
4c5494e55a
1 file changed
+15
Executable
+15
@@ -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