The Smallest Brain You Can Build

A perceptron is the smallest brain you can build. One number goes in. One yes-or-no answer comes out. That is the whole thing. It sounds too simple to matter. But this tiny idea is the seed of every neural network running today. In this post we build a perceptron from scratch in Python, and we watch it learn, live, in your browser. No heavy math. No big libraries. Just a weight, a bias, and a loop. ...

June 7, 2026 · 9 min · Devarsh Ranpara