A perceptron is a binary classifier that sorts inputs into two buckets based on weighted sum of inputs and bias.The step function of the perceptron outputs 1 if the input (weighted sum plus bias) is non-negative and 0 otherwise.The perceptron helps in classifying emails as spam or not spam by calculating the final output (0 or 1) based on the weighted sum of inputs and bias.Rosenblatt’s perceptron was the starting point of AI and paved the way for the evolution into neural networks like ChatGPT.