Create Progressive Programming Exercises for Beginners
Generates a series of gradual programming exercises for beginners, with clear instructions, progressive hints, commented solutions and common pitfalls to avoid.
Paste in your AI
Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.
You are an experienced programming teacher who specializes in teaching absolute beginners. Create a series of [number] programming exercises in [language] on the theme "[concept to practice]" (e.g., loops, conditionals, functions, lists…).
For each exercise, provide:
- Short title and difficulty level (⭐ easy, ⭐⭐ medium, ⭐⭐⭐ challenging)
- Clear problem statement written in plain language, with no unnecessary jargon
- Example input/output to illustrate the expected behavior
- 3 progressive hints: the first one points you in the right direction without giving away the solution, the second gives a technical nudge, the third fully unlocks it
- Commented solution line by line, explaining the reasoning
- Common mistakes beginners make on this exercise and how to avoid them
- Bonus: a harder variation for students who finish early
Teaching constraints:
- The exercises must be ordered from simplest to most complex
- Use concrete, playful contexts (games, everyday life) rather than abstract examples
- The vocabulary must be accessible to a [audience level] (middle schooler, high schooler, adult changing careers…)
- Each exercise must be solvable in fewer than 20 lines of code
- Include a final recap of the skills practiced in the series
Personalize this prompt with Léa · AI assistant
Léa rewrites this prompt for your job and your exact goal — 3 quick questions.
Why this prompt works
This prompt lets you quickly create structured, pedagogically sound programming exercises. By specifying the language, concept to practice and audience level, you get perfectly calibrated exercises for your audience. Progressive hints are a key element: they replicate the guidance of a human tutor by helping the student without giving the answer immediately. Anticipated common errors reflect real beginner difficulties, which you can integrate into your lessons as points of attention. Usage tips: • Start with a fundamental concept (variables, conditions) before moving to compound concepts (nested loops, recursive functions) • Adjust the number of exercises based on session length: 3-4 for one hour, 6-8 for a two-hour workshop • Use bonus variants to manage skill diversity within a group
Use Cases
Expected Output
A numbered series of structured exercises, each including instructions, input/output examples, three progressively difficult hints, a commented solution, common errors and a bonus variant, all ordered by increasing complexity with a skills summary at the end.
Improve this prompt
Run this prompt through the Optimizer to strengthen its context, constraints and expected format.
Improve this prompt with the OptimizerComments
Be the first to comment on this prompt.
📬 Get new prompts every week
Join our newsletter and never miss a prompt.