def stats_box(points):
    """
    Returns the extrema and dimensions for a box enclosing the points

    Args:
        points (list): a list of points in [(x1, y1),(x2, y2),(xN, yN)] form

    Returns:
        min_x (float): minimum x coordinate
        min_y (float): minimum y coordinate
        max_x (float): maximum x coordinate
        max_y (float): maximum y coordinate
        width (float): width across x-coordinates
        height (float): width across y-coordinates

    Example Returns::

        min_x, min_y, max_x, max_y, width, height = stats_box(points)
    """

    x_coordinates = []
    y_coordinates = []
    for x_coordinate, y_coordinate in points:
        x_coordinates.append(x_coordinate)
        y_coordinates.append(y_coordinate)

    min_x = min(x_coordinates)
    max_x = max(x_coordinates)
    min_y = min(y_coordinates)
    max_y = max(y_coordinates)

    return min_x, min_y, max_x, max_y, abs(max_x - min_x), abs(max_y - min_y)