Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "For an ordinary instance method, what does Python do when code calls account.deposit(10)?" on CodeWiki (https://codewiki.com/practice/mcq/python/checkpoint-3/checkpoint-3-bound-method/).
Context (verbatim from the page):
"""
For an ordinary instance method, what does Python do when code calls account.deposit(10)?
It binds account as the first argument and passes 10 as the next argument
It copies every account attribute into local variables
It calls the method without an instance because self is optional
"""
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.