Doesn't learn yet but maybe in future it will. It determines its out put by putting in 1 or 0 for the input then using not/or/and gates to get an output.
Me @Linop