def length(v):
    """
    Calculate the length of a vector.

    Arguments:
        v: tuple of numbers

    Returns:
        The length of the vector.
    """
    return sum(j * j for j in v) ** 0.5