Code
19-line Line-by-line Python Perceptron - Thomas Countz - Medium
https://medium.com/@thomascountz/19-line-line-by-line-python-perceptron-b6f113b161f3
Theory
Perceptron Learning Algorithm: A Graphical Explanation Of Why It Works
https://towardsdatascience.com/perceptron-learning-algorithm-d5db0deab975