Ask your AI Ask your AI to turn this code into a guided bug-finding exercise.
Claude ChatGPT I am reading "What happens by default when a function annotated def total(count: int) is called with "3"?" on CodeWiki (https://codewiki.com/practice/mcq/python/checkpoint-5/checkpoint-5-runtime-enforcement/).
Context (verbatim from the page):
"""
What happens by default when a function annotated def total(count: int) is called with "3"?
Python binds the string normally; the annotation alone performs no runtime check
Python converts the string to int before entering the function
The call always raises TypeError at the annotated boundary
"""
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.