Session Ready
Exercise

Triple plays (mostly) all around

Prizes can be shared, even by more than two laureates. In fact, all prize categories but one – literature – have had prizes shared by three or more laureates.

Instructions
100 XP
  • Save a filter document criteria that, when passed to db.prizes.distinct, returns all prize categories shared by three or more laureates. That is, "laureates.2" must exist for such documents.
  • Save these prize categories as a Python set called triple_play_categories.
  • Confirm via an assertion that "literature" is the only prize category with no prizes shared by three or more laureates.