Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "In with manager as resource, where does resource come from?" on CodeWiki (https://codewiki.com/practice/mcq/python/checkpoint-4/checkpoint-4-enter-value/).
Context (verbatim from the page):
"""
In with manager as resource, where does resource come from?
The value returned by manager.__enter__()
The manager object in every case
The value returned by manager.__exit__()
"""
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.