Have you ever asked an AI chatbot a question and got a confusing or unhelpful answer? That's probably not the AI's fault — it might be about how you asked the question. Learning how to talk to AI effectively is a skill called prompt engineering, and it's one of the most useful things a young coder can learn right now.

What is a prompt? A prompt is simply the message or instruction you give to an AI. When you type something to ChatGPT or Claude, that's your prompt. The better your prompt, the better the answer.

Why does the way you ask matter?

AI tools like ChatGPT, Claude, and Gemini are incredibly powerful — but they don't read minds. They respond to exactly what you tell them. If you're vague, you'll get a vague answer. If you're specific and clear, you'll get something genuinely useful.

Think of it like giving instructions to a very smart friend who has never met you before. The more context you give them, the better they can help.

The 4 rules of a great prompt

1. Be specific about what you want

Instead of asking "Tell me about Python", try "Explain what a loop does in Python with a simple example for a beginner aged 12." The second version tells the AI exactly who it's talking to and what kind of answer you need.

2. Give it a role

You can tell the AI to behave as a specific kind of expert. This often makes the answer much more useful.

You are a patient coding teacher for kids aged 10–12. Explain what a variable is in Python using a simple, fun example that a 10-year-old would enjoy.

3. Set the format

Do you want a list? A short paragraph? Step-by-step instructions? Tell the AI! Adding phrases like "explain this in 3 simple steps" or "give me 5 examples" helps you get exactly what you need.

4. Iterate — keep improving your prompt

Your first prompt doesn't have to be perfect. If the answer isn't quite right, refine your question. You can say "That's good, but can you make it shorter?" or "Can you give me a different example?"

Prompt examples to try today

  • For learning: "I'm 12 years old and learning Python. Explain for loops with 3 fun examples I can try right now."
  • For homework: "Help me understand photosynthesis in under 100 words, then give me 3 quiz questions to test myself."
  • For debugging: "Here is my Python code: [paste code]. It's giving me an error. Can you find the problem and explain it?"

Pro tip: Always read the AI's answer critically. AI tools are helpful but not always 100% accurate. If something doesn't seem right, ask a teacher or parent to check!

Why is this a valuable skill?

Prompt engineering is becoming a real job skill. Companies are hiring people who know how to work effectively with AI tools. By learning this now, you're building a skill that will be useful throughout your education and career — and you're also learning to think clearly and communicate precisely, skills that go far beyond AI.

CE
CodeEarly Team
Instructors & Content Team
The CodeEarly content team is made up of experienced tech educators and industry professionals passionate about making technology education fun and accessible for African kids aged 7–15.

Found this useful? Share it!