def percentile(data):
    """Convert an iterable to a percentile of min/max known from 0-1.

    Args:
        data (iterable[float]): like (1, 10, 100, 50, 100, 50)

    Returns:
        list[float]: like (0.01, 0.1, 1.0, 0.5, 1.0, 0.5)

    """
    vmax = max(data)
    vmin = min(data)
    return [((item - vmin) / (vmax - vmin)) for item in data]