Python Code For Perceptron In Machine