Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "A frozen dataclass has a field values: list[int]. Which statement is correct?" on CodeWiki (https://codewiki.com/practice/mcq/python/checkpoint-3/checkpoint-3-frozen-boundary/).
Context (verbatim from the page):
"""
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
"""
Introduce three subtle bugs into the example above and let me find them. Reveal each answer only after I have guessed.
Answer in English. Keep code examples in Python. Where you are unsure, say so.