def obtain_points(func, theta_0, theta_1, min_x, max_x, step=0.1):
    """
    Return a tuple of x and the corresponding points for the given x
    """

    x_values = []
    y_values = []

    x = min_x

    while x <= max_x:

        y_values.append(func(x, theta_0, theta_1))
        x_values.append(x)

        x += step

    return (x_values, y_values)