Three shapes to know

A logic gate takes one or more bits in and produces one bit out, following a fixed rule. Three gates are the foundation:
- AND: output is 1 only when all inputs are 1.
- OR: output is 1 when at least one input is 1.
- NOT: output is the opposite of the input.
Underneath, each gate is a few transistors: real switches in silicon. AND is switches in series, OR is switches in parallel, NOT flips its input.
