Python · Lesson 3.3 · Pro

Truthiness, None and in

How Python decides what counts as true, what None means, and quick membership tests.

In this lesson

  1. Empty things count as False
  2. None means "no value"
  3. Is it in there?
  4. A default for missing values