A neural network tool easy to use and understand.
It could be made more efficient with matrices.
But it works very well, and you are free to use this code as you want
Z: create a random neural network
X: use a random input in the network
A: Train the initial network to solve the XOR problem. (give error if you change the initial network)