robot_localisation/main.py
def manhattan(pos1, pos2):
    """
    Calculate the Manhattan distance between pos1 and pos2.
    """
    x1, y1 = pos1
    x2, y2 = pos2
    return abs(x1-x2) + abs(y1-y2)

    Calculate the Manhattan distance between pos1 and pos2.
    
Calculate the Manhattan distance between pos1 and pos2.
Calculate the Manhattan distance between pos1 and pos2 .
def manhattan(pos1, pos2):
    x1, y1 = pos1
    x2, y2 = pos2
    return abs(x1-x2) + abs(y1-y2)
def manhattan ( pos1 , pos2 ) : x1 , y1 = pos1 x2 , y2 = pos2 return abs ( x1 - x2 ) + abs ( y1 - y2 )
Calculate the Manhattan distance between pos1 and pos2.
Calculate the Manhattan distance between pos1 and pos2 .
"""
    Calculate the Manhattan distance between pos1 and pos2.
    """
pos1
pos2