Task Write a perceptron and train it against simple boolean logic. (AND, OR, NOT, NOR, NAND) Show that training improves the success rate of the perceptron. Show that a perceptron cannot be trained to give XOR logical output.