Perceptron is the most fundamental unit of Neural Network architecture in Machine Learning. In this article, we will learn to design a perceptron from scratch in Python to make it learn the properties of AND, OR and XOR logic gates. We will observe the need for multiple layer perceptron (MLP) over single layer perceptron.