Anton32222
			  Июнь 15, 2021 14:09:26
		 	 
			
				ребят помогите с Задача №22: task_5_10 
обьясните алгоритм
Вот код:
def task_5_10():
    while 1:
        while not wall_is_on_the_right():
            fill_cell()
            move_right()
            fill_cell()
        move_down()
        while not wall_is_on_the_left():
            fill_cell(), move_left(), fill_cell()
        move_down()
        if wall_is_on_the_right() and wall_is_beneath():
            while wall_is_on_the_left() != True:
                move_left()
уже сделал сам
вот код:
def task_5_10():
    while 1:
        if wall_is_on_the_right() and wall_is_on_the_left():
            fill_cell()
            break
        while not wall_is_on_the_right():
            fill_cell()
            move_right()
            fill_cell()
        move_down()
        while not wall_is_on_the_left():
            fill_cell(), move_left(), fill_cell()
        if wall_is_on_the_left() == True and wall_is_beneath() == True:
            break
        while not wall_is_on_the_right():
            move_right()
			
		 
		
			
			  py.user.next
			  Июнь 15, 2021 17:22:36
		 	 
			
				Anton32222
ребят помогите с Задача №22: task_5_10
Здесь делал.
Если 
сайт не открывается, копия сайта 
здесь.
			
 
		 
		
			
			  tarun2790
			  Июль 20, 2021 16:50:54
		 	 
			
		 
		
			
			  Aline
			  Ноя. 10, 2021 19:30:56
		 	 
			
				Подскажите, пожалуйста, как работают функции в этих заданиях? Я дошла до заданий с подпрограммами и, соответственно, пытаюсь написать функцию: объявляю через def название_фунции(): блок кода сразу после def task_number.(): с положенным отступом и без. Но у меня ничего не работает, функция не запускается, робот не работает. Открываю через IDLE Python 3.9 -> PY Shell -> pyrob. Не понимаю, как дальше действовать
			
		 
		
			
			  py.user.next
			  Ноя. 10, 2021 19:36:41
		 	 
			
				Aline
Открываю через IDLE Python 3.9
Тут писал, как без IDLE работать с питоном.
			
 
		 
		
			
			  Aline
			  Ноя. 10, 2021 19:41:06
		 	 
			
				py.user.next
А, в IDLE дело. Спасибо большое, буду переходить на консоль 
 
			 
		 
		
			
			  imagion
			  Янв. 3, 2022 20:06:35
		 	 
			
				задача 18 , чёт прокапался с ней, выложу сюда, может кому-то будет полезно.
def task_8_28():
    while wall_is_above() and not wall_is_on_the_left():
            move_left()
    while wall_is_above() and not wall_is_on_the_right():
            move_right()
    while not wall_is_above():
            move_up()
    while wall_is_above() and not wall_is_on_the_left():
            move_left()
			
		 
		
			
			  imagion
			  Янв. 3, 2022 20:18:09
		 	 
			
				ну и 19я выходит из18й
def task_8_29():
    while wall_is_above() and not wall_is_on_the_left():
        move_left()
    while wall_is_above() and not wall_is_on_the_right():
        move_right()
    while not wall_is_above():
        move_up()
    while wall_is_above() and not wall_is_on_the_left():
        move_left()
    while wall_is_beneath() and not wall_is_on_the_right():
        move_right()
			
		 
		
			
			  py.user.next
			  Янв. 3, 2022 23:29:59
		 	 
			
				imagion
задача 18 , чёт прокапался с ней, выложу сюда, может кому-то будет полезно.
Тут делал задачу 18.
imagion
ну и 19я выходит из18й
Тут делал задачу 19.
			
 
		 
		
			
			  imagion
			  Янв. 8, 2022 10:18:47
		 	 
			
				может кто помочь?
нужно решение 31го задания, в виде рабочего кода
без псевдокода