Python 3.15 Preview: Sentinel Values Quiz

Interactive Quiz ⋅ 11 Questions
By Joseph Peart

In this quiz, you’ll test your understanding of Python 3.15 Preview: Sentinel Values.

By working through this quiz, you’ll revisit what sentinel values are, where the classic object() idiom falls short, and how Python 3.15’s built-in sentinel type gives you readable signatures, precise type hints, and identity that survives copying and pickling.

You’ll also practice deciding when a sentinel beats None, so you’ll know exactly which object() markers in your own code are worth replacing once you upgrade.

The quiz contains 11 questions and there is no time limit. You’ll get 1 point for each correct answer. At the end of the quiz, you’ll receive a total score. The maximum score is 100%. Good luck!

Related Resources

A person with purple hair holds a notebook and slots a card labeled MISSING into a large machine that feeds out long paper printouts, beside control panels and a Python logo.

Tutorial

Python 3.15 Preview: Sentinel Values

Learn how to create a Python sentinel value with the new built-in in Python 3.15 and get readable signatures, type hints, and safe copying and pickling.

intermediate best-practices python