i am a novice to electronics,actually i am java and android developer who doesn't know the very basic concepts of computing and trying to learn from ground level. i was checking out a video which explains about logical gates very well but i did not understand on thing in this pic:
the xor gate has NAND gate and OR gates with output connecting to AND gate so if both switches are on out put of right bulb will be off. my question is if instead of XOR gate we put just NAND gate isn't it gonna be same thing? because all we want is output off if both switches are on.