ok
This commit is contained in:
24
10/advent_1.py
Normal file
24
10/advent_1.py
Normal file
@@ -0,0 +1,24 @@
|
||||
def otsing(x, y, tase):
|
||||
print(otsin)
|
||||
|
||||
|
||||
with open("data.txt") as file:
|
||||
lines = [line.rstrip() for line in file]
|
||||
|
||||
ruum = []
|
||||
for line in lines:
|
||||
ruum.append([*line])
|
||||
|
||||
print(ruum)
|
||||
|
||||
leitud = false
|
||||
for x, rida in enumerate(ruum):
|
||||
for y, koht in enumerate(rida):
|
||||
print(f"x={x}, y={y}, koht={koht}")
|
||||
if koht == 'S':
|
||||
otsing(x, y, 0)
|
||||
leitud = true
|
||||
break
|
||||
if leitud:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user