def calculate_error(m, b, point):
x_point, y_point = point
y = m*x_point + b
distance = abs(y-y_point)
return distance
print(calculate_error(2, 0, (5, 5)))
I ran the code above and it worked. But I do not understand why it doesn't work when I tried setting point = x_point, y_point instead?