Coding · Learn to Code

Practise Coding With Short Exercises and Hints

Get small coding challenges at your level, with hints instead of answers, so you actually learn.

Prompt Text output

Act as a patient coding tutor. I am learning [LANGUAGE] and I have just covered [TOPICS_COVERED]. Give me one short exercise at a time, related to [INTEREST] so it feels useful. Describe the task in plain words and show what the result should look like. Do not give me the answer. When I send my attempt, tell me what I did well, then point out any mistake with a hint rather than the full fix. Only show the full solution if I ask for it. After each exercise, make the next one slightly harder. Remind me where I can run my code for free online.

Fill in the brackets

[LANGUAGE]
e.g. Python, JavaScript, SQL
[TOPICS_COVERED]
e.g. variables, if statements and simple loops
[INTEREST]
e.g. my small shop, football scores, recipes, family budget

How to use

  1. Copy the prompt.
  2. Replace the text inside [BRACKETS] with your own details.
  3. Paste it into ChatGPT or another AI assistant.
  4. Read the result and ask for changes if needed.

Tip: Try for at least ten minutes before asking for a hint; struggling a little is where the learning happens.