The Smallest Brain You Can Build: A Perceptron in Python (opens in new tab)
I think it should be quite obvious that perceptrons are far from the smallest units that are capable of learning. They store many bytes of information, require a non-local update process, need numeric (i.e. symbolic) inputs and involve relatively complex computations. You can go much simpler. For example:
Read the original article