Learning to code with AI
For both
Learning a programming language, framework or codebase with AI as a tutor while still building the skill to write and debug code yourself
110 questions across four stages: Understand, Apply, Solve and Judge.
Try 5 questions
Practice items, not counted towards your mastery. No account needed.
Check yourself · 1 of 5
You are learning Python and use a coding assistant. Which request best keeps the learning work with you?
Check yourself · 2 of 5
Why write a guess before asking an AI to explain a snippet?
Check yourself · 3 of 5
Why turn off inline autocomplete while you are learning to code?
Check yourself · 4 of 5
A Python run ends with KeyError: 'email' and a long stack trace. Where do you look first?
Check yourself · 5 of 5
What is the best first request when you open an unfamiliar repository with an AI assistant?
Topics
- Learning modes in coding assistants4 min read · Claude Code learning output style, the CS50 duck and tutor prompts in Copilot or Cursor chat that leave work for you
- Predicting code before asking for an explanation4 min read · Guessing what a snippet does first, then using AI to check the guess and explain the difference line by line
- Writing code first, then comparing4 min read · Your own attempt before the AI version, autocomplete off while learning, and a review that names concrete changes
- Debugging as a learning exercise4 min read · Reading the error and stack trace yourself and asking for hints before accepting an AI fix
- Learning a new framework or codebase4 min read · Mapping unfamiliar code with AI and checking version-specific API claims against current docs and the code itself
Start here
- How AI assistance impacts the formation of coding skills (Anthropic) (opens in a new tab)ArticleFree
A randomized trial of 52 developers learning a new Python library: delegating to AI lowered comprehension, asking for explanations did not.
- Output styles, including the learning style (Claude Code docs) (opens in a new tab)DocsFree
How to switch Claude Code to the Learning style, which explains choices and leaves small pieces for you to write.
- CS50.ai, the CS50 duck tutor (Harvard) (opens in a new tab)ToolFree
A tutor built for beginners that guides with questions and hints rather than finished solutions.
Helps to know first
110 questions · last verified 2026-12