def route_by_littl(point_names, tbl): n = len(point_names) #количество пунктов в маршруте state = State().begin(point_names, tbl) state.print() #print(state.zero) route = Route() #Здесь маршрут запоминаем (только один) for step in range(n - 2): #два последних шага отдельно выводим, так как там нет вариантов jump = state.next_zero_jump() route.append(jump) jump.print() print('') state = jump.state state.print() return route