Loading lesson…
AI chatbots can't actually run your code — they pattern-match what code usually looks like, which sometimes invents APIs that don't exist.
When ChatGPT or Claude writes code, it's predicting tokens, not executing them. It's seen millions of similar snippets and stitches together what looks right. That means imported functions might not exist and library versions might be wrong — confidently.
Ask an AI for a small script using a library you know well. Read carefully — try to catch one made-up function before you run the code.
Try this with a school, hobby, or family example where the stakes are low. Use the AI output as a draft you can question, not as the final answer.
8 questions · take it digitally for instant feedback at tendril.neural-forge.io/learn/quiz/end-builders-aicoding-ai-cant-run-your-code-r8a8-teen
What is the main idea of "Why ChatGPT Confidently Suggests Code That Doesn't Run"?
Which concept is most central to "Why ChatGPT Confidently Suggests Code That Doesn't Run"?
Which use of AI fits this topic best?
What should a careful learner remember about "The rule"?
You want to use AI after this lesson. What is the safest next step?
How should AI output about hallucination be treated?
Name one way to verify an AI answer about hallucination.
Which action would help you apply "Why ChatGPT Confidently Suggests Code That Doesn't Run" responsibly?