import math


def dist(x1, y1, x2, y2):
    """
    Computes Euclidean distance between two points.

    Parameters
    ----------
    x1: float
        point A x
    y1: float
        point A y
    x2: float
        point B x
    y2: float
        point B y

    Returns
    -------
    float
        distance from A to B
    """
    return math.sqrt((x2 - x1) ** 2 + (y2 - y1) ** 2)