The perceptron was built in 1958 to see whether a machine could learn to recognise shapes.
It takes a handful of numbers in and produces a single yes or no.
Each input is multiplied by its own weight, and the results are added together.
A bias is added to that sum, which shifts where the decision falls.
If the total clears zero the neuron fires, and otherwise it stays quiet.
Learning means nudging the weights every time the answer comes out wrong.
An input that pushed towards the wrong answer has its weight reduced a little.
Repeat that over the data and the weights settle into something that works.
What it draws is a straight line, or a flat plane once you have more than two inputs.
Anything the line can separate, the perceptron can learn, and nothing else.
Exclusive-or is the famous counterexample, since no single straight line separates it.
That result stalled the whole field for over a decade.
The escape was to stack perceptrons in layers, so later ones see what earlier ones found.
That stack is a neural network, and the perceptron is the unit it is built from.
Every neuron in a modern model is still doing this same weighted sum.