Skip to content
CodeWiki
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
Search
⌘K
English
English
Chinese
Practice
Paths
Tracks
Cheatsheets
Playground
Glossary
AI era
English
English
Chinese
Practice
/
Quiz
/
Python
/
Python
A frozen dataclass has a field values: list[int]. Which statement is correct?
from Python
intermediate
1 min
A frozen dataclass has a field values: list[int]. Which statement is correct?
Rebinding values is blocked, but the list object can still be mutated
Both rebinding and every mutation inside the list are blocked
frozen=True converts the list to a tuple automatically
Check
Ask AI about this kata
Report an error
previous kata
Name the magic method that defines an object’s developer-oriented representation
Fill in
next kata
Which dataclasses field() argument creates a fresh list for every instance?
Fill in
A new version is available
Reload