Understand errors
Describe an error or unexpected output and get a plain-language explanation of what may be causing it.
Meet a coding mentor that helps you make sense of errors, review snippets, and learn programming concepts through clear, step-by-step explanations.
A small bug. A useful lesson.
def average(numbers): total = sum(numbers) return total / len(number) scores = [70, 85, 90] print(average(scores))
Likely issue: the function receives numbers, but the return line uses number. Those names do not match. Use len(numbers) to count the items in the list.
CodeMentor AI is designed to help learners understand what went wrong and what to practise next—not just copy a fix.
Describe an error or unexpected output and get a plain-language explanation of what may be causing it.
Ask for likely bugs, readability improvements, and practical suggestions for the code you share.
Request a high-level overview or a line-by-line walkthrough that makes unfamiliar code easier to follow.
Ask for an algorithm hint or a nudge toward the next step when you want to solve a problem yourself.
Select a programming language and the kind of help that fits the question you are working on.
The starter project is designed to read its Anthropic API key from an environment variable rather than hard-coding it.
Focus the conversation on the specific thing you want to understand.
Choose a help mode and language, then paste a code snippet and explain what you expected to happen.
Use the AI-generated response to examine the likely issue, suggested correction, and relevant concept.
Apply the idea to your code, test the result, and use follow-up questions to deepen your understanding.
CodeMentor AI is an early-stage MVP and learning project. Explore the source code, review the setup instructions, or contribute ideas through GitHub.