結果 : code for gradient descent in python