Python · Lesson 6.5 · Pro

Sets

Unique values, fast membership tests, and set maths like "in both" and "in one but not the other".

In this lesson

  1. Unique values
  2. Sorted unique values
  3. In both, in either, in one only
  4. Fast "have I seen it?"