Ch 2 · NOT, AND, OR · Theory
Topic 2 of 10 in Boolean Logic & Logic Gates — How Machines Decide — 3 lessons.
The NOT Gate (Inverter)
The NOT gate has one input. It simply flips it: 1 becomes 0, 0 becomes 1.
AND & OR
Gates in Code
Every gate is just a rule. Here they are as functions — running them prints each gate's full truth table.