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.

All topics in Theory Boolean-logic

  1. Why Logic Gates
  2. NOT, AND, OR
  3. NAND, NOR, XOR
  4. Truth Tables
  5. From Problem to Circuit
  6. Logic Expressions
  7. Boolean Algebra (A Level)
  8. Karnaugh Maps & Flip-Flops (A Level)
  9. Gates That Do Arithmetic
  10. Check Your Understanding