Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "Which keyword lets an inner function rebind a name in its nearest enclosing function scope?" on CodeWiki (https://codewiki.com/practice/fill/python/checkpoint-2/checkpoint-2-enclosing-rebind/).
Context (verbatim from the page):
"""
Which keyword lets an inner function rebind a name in its nearest enclosing function scope?
"""
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.