<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/python-3-15-preview-frozendict-quiz-real-python-y3yn5p2wc" -->

---
title: Python 3.15 Preview: frozendict Quiz – Real Python
description: An interactive 13-question quiz tests understanding of Python 3.15's new frozendict type, covering how to build a frozen mapping, why it isn't a dict subclass,...
canonical: https://daily.dev/posts/python-3-15-preview-frozendict-quiz-real-python-y3yn5p2wc
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Python 3.15 Preview: frozendict Quiz – Real Python | daily.dev
og:description: An interactive 13-question quiz tests understanding of Python 3.15's new frozendict type, covering how to build a frozen mapping, why it isn't a dict subclass,...
og:url: https://daily.dev/posts/python-3-15-preview-frozendict-quiz-real-python-y3yn5p2wc
og:image: https://api.daily.dev/og/posts/y3yN5P2wc.png
og:image:alt: Python 3.15 Preview: frozendict Quiz – Real Python
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Python 3.15 Preview: frozendict Quiz – Real Python

**[Real Python](https://daily.dev/sources/rpython)** · 1 min read · 0 upvotes · 0 comments

## Summary

An interactive 13-question quiz tests understanding of Python 3.15's new frozendict type, covering how to build a frozen mapping, why it isn't a dict subclass, what makes it hashable, and the limits of its immutability. No time limit, scored as a percentage.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://realpython.com/quizzes/python315-frozendict>

## Questions this post answers

### What is frozendict in Python 3.15 and how is it different from a regular dict?

Frozendict is a new immutable mapping type introduced in Python 3.15, giving dictionaries the same kind of immutable counterpart that lists and sets already have. It is not a subclass of dict, so it does not inherit dict's mutating methods. Once created, its contents cannot be changed, and it can be made hashable so it can be used as a key in another dictionary or as a set element.

_Developers tracking new Python 3.15 features can follow immutable mapping updates on daily.dev._

### Can a frozendict be used as a dictionary key in Python?

Yes, a frozendict can be used as a dictionary key or set element once it is made hashable. Making it hashable requires that its values also be hashable, since the freeze on a frozendict only guards the top-level mapping and does not automatically make nested mutable values immutable.

_Anyone building hashable data structures in Python can keep up with immutability changes via daily.dev._

## Similar posts on daily.dev

- [Get started with Python’s new frozendict type](https://daily.dev/posts/get-started-with-python-s-new-frozendict-type-z3smdzvfm) · InfoWorld · 0 upvotes · 0 comments
- [Python Gains frozendict and Other Python News for March 2026 – Real Python](https://daily.dev/posts/python-gains-frozendict-and-other-python-news-for-march-2026-real-python-pllbqmb7u) · Real Python · 11 upvotes · 0 comments
- [A "frozen" dictionary for Python](https://daily.dev/posts/a-frozen-dictionary-for-python-9mwi8jiie) · Hacker News · 0 upvotes · 0 comments
- [Python 3.12 Preview: Static Typing Improvements Quiz – Real Python](https://daily.dev/posts/python-3-12-preview-static-typing-improvements-quiz-real-python-g7yzuutck) · Real Python · 0 upvotes · 0 comments

---

Tags: [#python](https://daily.dev/tags/python), [#data-structures](https://daily.dev/tags/data-structures)

[View this post on daily.dev](https://daily.dev/posts/python-3-15-preview-frozendict-quiz-real-python-y3yn5p2wc)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Python 3.15 Preview: frozendict Quiz – Real Python","url":"https://daily.dev/posts/python-3-15-preview-frozendict-quiz-real-python-y3yn5p2wc","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/python-3-15-preview-frozendict-quiz-real-python-y3yn5p2wc"},"datePublished":"2026-09-21T12:12:27.043Z","dateModified":"2026-09-21T12:12:44.467Z","description":"An interactive 13-question quiz tests understanding of Python 3.15's new frozendict type, covering how to build a frozen mapping, why it isn't a dict subclass,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6d80859d94056b1bd5d14be20c264991?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6d80859d94056b1bd5d14be20c264991?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Real Python","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Real Python","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/rpython","url":"https://daily.dev/sources/rpython"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/python-3-15-preview-frozendict-quiz-real-python-y3yn5p2wc","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"python,data-structures","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Real Python","item":"https://daily.dev/sources/rpython"},{"@type":"ListItem","position":3,"name":"Python 3.15 Preview: frozendict Quiz – Real Python"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/python-3-15-preview-frozendict-quiz-real-python-y3yn5p2wc#faq","mainEntity":[{"@type":"Question","name":"What is frozendict in Python 3.15 and how is it different from a regular dict?","acceptedAnswer":{"@type":"Answer","text":"Frozendict is a new immutable mapping type introduced in Python 3.15, giving dictionaries the same kind of immutable counterpart that lists and sets already have. It is not a subclass of dict, so it does not inherit dict's mutating methods. Once created, its contents cannot be changed, and it can be made hashable so it can be used as a key in another dictionary or as a set element. Developers tracking new Python 3.15 features can follow immutable mapping updates on daily.dev."}},{"@type":"Question","name":"Can a frozendict be used as a dictionary key in Python?","acceptedAnswer":{"@type":"Answer","text":"Yes, a frozendict can be used as a dictionary key or set element once it is made hashable. Making it hashable requires that its values also be hashable, since the freeze on a frozendict only guards the top-level mapping and does not automatically make nested mutable values immutable. Anyone building hashable data structures in Python can keep up with immutability changes via daily.dev."}}]}
```

