def distance(coords):
    """Calculate the distance of a path between multiple points

    Arguments received:
    coords — list of coordinates representing a path

    Arguments returned:
    distance -- total distance as a float
    """
    distance = 0
    for p1, p2 in zip(coords[:-1], coords[1:]):
        distance += ((p2[0] - p1[0]) ** 2 + (p2[1] - p1[1]) ** 2) ** 0.5
    return distance