😍
после тех решений возвращаю и вижу что можно было сделать иначе и проще)
@task
def task_5_10():
if wall_is_above() and wall_is_beneath():
fill_cell()
else:
y=0
while y<100 or not wall_is_beneath():
fill_cell()
move_down()
fill_cell()
if wall_is_beneath():
break
y+=1
x=0
while x<100 or not wall_is_in_the_right():
fill_cell()
move_right()
fill_cell()
if wall_is_on_the_right():
break
x+=1
while x>=0:
for i in range(y+1):
fill_cell()
move_up()
fill_cell()
move_left()
for i in range(y+1):
fill_cell()
move_down()
fill_cell()
if not wall_is_on_the_left():
move_left()
x-=2