while not wall_is_on_the_right(): move_right() if not wall_is_above(): while not wall_is_above(): move_up() fill_cell() if wall_is_above(): while not wall_is_beneath(): move_down() if wall_is_beneath(): while not wall_is_on_the_right(): move_right()
while not wall_is_on_the_right(): move_right() if not wall_is_above(): while not wall_is_above(): move_up() fill_cell() if wall_is_above(): while not wall_is_beneath(): move_down() if wall_is_beneath(): while not wall_is_on_the_right(): move_right()
while not wall_is_above():
move_up()
fill_cell()
if wall_is_above():
цикл пока справа_нет_стены выполнять
шагнуть вправо
если сверху_нет_стены то
цикл пока сверху_нет_стены выполнять
шагнуть вверх
закрасить ячейку
конец цикла
цикл пока снизу_нет_стены выполнять
шагнуть вниз
конец цикла
конец если
конец цикла
цикл пока снизу_есть_стена выполнять
шагнуть влево
конец цикла
[guest@localhost pyrob]$ python3 task_23.py
INFO:pyrob:Starting task task_6_6
INFO:pyrob:Task task_6_6 finished: +
INFO:pyrob:Total: 1/1
[guest@localhost pyrob]$
py.user.nextСпасибоFishHook