proomt

Search

Search posts, papers, and topics

All posts

Real Python1 min readintermediate

Quiz: Python 3.15 Preview: frozendict

Summary

This is an interactive quiz testing understanding of Python 3.15's new `frozendict` type. It covers how to build a frozen mapping, its hashability, and why it isn't a `dict` subclass.

  • Python 3.15 introduces `frozendict` as an immutable dictionary counterpart.
  • `frozendict` is not a subclass of `dict`.
  • Instances of `frozendict` are hashable.
  • The immutability of `frozendict` is shallow, not deep.

Python developers should care to understand upcoming core language features like `frozendict` to write more robust and efficient code.

3/10

Related reading

  1. Quiz: Thinking Recursively in Python

    This is an interactive quiz from Real Python designed to test understanding of recursive thinking in Python. It covers identifying recursive structures, writing base and recursive cases, managing state, and using caching to avoid recomputation.

    Real Pythonrealpython.com1 min
  2. Quiz: Introduction to pandas

    Real Python offers a 7‑question interactive quiz covering basic pandas tasks like pulling HTML tables, saving CSVs, DataFrame basics, and method chaining. The page provides only the quiz prompt without explanatory content.

    Real Pythonrealpython.com1 min