# Milestone 1

due at midnight on   +125

For this milestone, take my perceptron implementation in Python and:

1. Complete the learn method of the Perceptron class, implementing the perceptron learning rule. It is supposed to test the perceptron one one example, and then adjust the weights according to the error and the learning rate. (You can make the learning rate, alpha, an instance variable by setting it in the constructor (__init__).

2. In the __main__ section of the file, write Python code to train the perceptron to act as either an AND gate or an OR gate by repeatedly (using a loop) presenting it with labeled examples.

After a sufficient number of iterations, print out the weights and the results on all four examples.

To submit, make sure you have completed the Git setup instructions, then save the Python file to your repository folder, commit and push.