Python 3/IA_laberinto_robotica/the_MAZ_IA.py
def can_b_better(route):
    """Returns true if the route can be optimized"""
    i = 0
    while i+1 <= len(route):
        if route[i:i+3] in transformations.keys():
            return True
        i += 1
    return False
Returns true if the route can be optimized
Returns true if the route can be optimized
Returns true if the route can be optimized
def can_b_better(route):
    i = 0
    while i+1 <= len(route):
        if route[i:i+3] in transformations.keys():
            return True
        i += 1
    return False
def can_b_better ( route ) : i = 0 while i + 1 <= len ( route ) : if route [ i : i + 3 ] in transformations . keys ( ) : return True i += 1 return False
Returns true if the route can be optimized
Returns true if the route can be optimized
"""Returns true if the route can be optimized"""
route