CODEQUEST PYTHON ACADEMY
How Should Kids Aged 8+ Learn Python? The Design Behind CodeQuest
Kids aged 8 and up can learn real, typed Python if each lesson shows them a working example first, asks them to predict and change it, treats errors as part of the lesson, and only then asks them to write something of their own.
Explore World 1 Free →Kids aged 8 and up can learn real, typed Python if each lesson shows them a working example first, asks them to predict and change it, treats errors as part of the lesson, and only then asks them to write something of their own. That's the bet I made when I built CodeQuest. In this article I want to explain the reasoning behind it, the research it draws on, and what I don't know yet.
One thing up front: CodeQuest has not been formally evaluated. This article is about design decisions, not results. I have no study showing it works, and I won't pretend otherwise.
Why this matters: where children's programming research stands
Researchers have argued for over a decade that computational thinking belongs in school-age education (Grover & Pea, 2013). A review of K–12 programming studies noted that much of the work focuses on programming concepts rather than practices, and it called for learning environments built around authentic problem solving (Lye & Koh, 2014). The open question for families is less whether kids can code and more how to structure the move from first experiments to steady, real practice. The rest of this post is my answer for CodeQuest, along with the evidence behind each choice.
The problem: real code is unforgiving for a child
Most kids start coding with blocks, and blocks are great (for a practical plan at home, see our step-by-step guide to teaching kids Python). When a family wants to move to a text language like Python, though, the difficulty jumps. A child has to type syntax exactly, read error messages written for adults, and juggle several new ideas at once.
Research on block-based and text-based programming shows this is a real trade-off. Weintrop and Wilensky compared the two in high school classrooms and found differences in learning and attitudes, and students tended to see text as closer to "real" programming (Weintrop & Wilensky, 2017). I chose text-based Python from the very first lesson. That meant the rest of the design had to make up for the extra load.
1. Show a working example before asking for one
Every CodeQuest lesson follows the same rhythm: See It → Try It → Challenge. First a child understands one idea and sees a working program. Then they run it and change it. Then they write a small program of their own.
This comes from decades of research on how novices learn. Sweller's work on cognitive load suggests that throwing beginners straight into problem solving can overload them and get in the way of learning (Sweller, 1988). Studying worked examples first helps (Atkinson et al., 2000), and minimal guidance tends to work poorly for beginners (Kirschner, Sweller & Clark, 2006).
2. Predict before you press Run
Before a child runs the example, I ask them to guess what it will do. Afterwards they change one value, predict again, and run it again.
Reading and tracing code is linked to being able to write it (Lopez et al., 2008). Prediction is also the first step of PRIMM (Predict, Run, Investigate, Modify, Make), an approach to teaching programming in schools developed by Sentance, Waite and Kallia (2019). When I put my lesson cycle next to PRIMM, the two turned out to be very close, and I took that as a good sign.
3. Treat errors as part of the lesson, not as failure
Python's error messages are written for adults. Research on programming error messages finds that standard messages are often unhelpful to novices (Becker et al., 2019), and that enhanced, friendlier messages can help (Becker et al., 2016).
So CodeQuest does three things:
- When code fails, the learner sees a friendly explanation alongside the raw Python error, so they still get used to what real Python says.
- Every lesson includes the same short debugging checklist: spelling, quotation marks, brackets, indentation, and the order of your instructions.
- One whole world, Error Detective, is about debugging. It starts with "Read Python error messages" and "Track down bugs step by step".
4. Give hints about the process, not the answer
Hints in CodeQuest point toward the next idea rather than handing over the solution. An optional AI study helper, Sprout, is set up to give short conceptual hints and is instructed not to give finished answers.
Hattie and Timperley's review of feedback is clear that feedback can help or hurt, and that feedback about the task and process tends to be more useful than handing over answers or offering general praise (Hattie & Timperley, 2007). The aim is that the child still does the thinking.
5. Use game elements carefully, because the evidence is mixed
CodeQuest uses 15 themed worlds (listed in the table below). It also has XP, stars, badges, streaks, a course map and a progress dashboard. This is the part of the design I'm least certain about, and I think it's important to say so.
Gamification means using game design elements in non-game settings (Deterding et al., 2011). The research on it is genuinely mixed:
- A meta-analysis found significant but small effects on learning, motivation and behaviour, with a lot of variation between studies (Sailer & Homner, 2020).
- A review of empirical studies found mostly positive but context-dependent effects (Hamari, Koivisto & Sarsa, 2014).
- In one university course, badges plus a leaderboard and competition went along with lower motivation and, through that, lower exam scores (Hanus & Fox, 2015).
CodeQuest uses badges, so that last finding applies to me directly. My intent is for rewards to make progress visible and not to rank children against each other. Whether that works for 8- to 12-year-olds is an open question.
6. Ask the child to explain their result to someone else
Each lesson asks the learner to explain their result to someone else. For parents, the questions I suggest are simple: What did the program do? What did you expect? What changed after you ran it?
PRIMM puts weight on talk about code (Sentance et al., 2019). It also means a parent doesn't need to know Python to help.
The 15-world path
The course moves from output, variables and decisions through loops, collections and functions, then on to files, objects, algorithms and data structures, and it ends with small projects. Each world builds on what came before and revisits earlier skills.
| World | Name |
|---|---|
| 1 | Python Explorer |
| 2 | Decision Maker |
| 3 | Loop Land |
| 4 | Collections |
| 5 | Functions Factory |
| 6 | String Wizard |
| 7 | Error Detective |
| 8 | Modules & Libraries |
| 9 | Files |
| 10 | Object Lab |
| 11 | Intermediate Python |
| 12 | Advanced Python |
| 13 | Algorithms |
| 14 | Data Structures |
| 15 | Project Studio |
The last world, Project Studio, ends with a run of small, self-contained programs that combine earlier skills: a unit converter, a shopping-cart total, a word counter, a dice game you can test, a to-do list and a "tiny quest report". If your child is ready for project ideas outside the course, our Python games for kids comparison lists other options.
Did I actually stick to this design?
Design principles are easy to write down and hard to apply consistently. So I checked my own course materials. I went through all 212 of my lesson audio scripts and searched for eight fixed steps: the big idea, predict, run, change and predict again, the debugging checklist, the mission, explain it to someone, and a quick quiz.
All eight steps appear in all 212 scripts. That tells me the sequence is applied consistently. It doesn't tell me that children learn more because of it. The same check also turned up a few lesson titles I need to fix, which is exactly why it's worth checking your own work.
How I checked. I converted each script to text and searched it for a fixed phrase marking each step, for example "take a moment to guess" for prediction and "If Python shows an error" for the debugging checklist. The check uses only my own teaching materials and no learner data. It covers the audio scripts, not every interactive screen.
What I don't know yet
To be clear about the limits:
- No outcome evaluation. I have no evidence that CodeQuest improves learning or motivation. I haven't collected or analysed any data about children for this.
- I'm not neutral. I built CodeQuest, so I'm biased toward my own design.
- Most of the research involves older learners, such as secondary school and university students. It may not transfer neatly to 8-year-olds.
- The game elements could backfire for some children.
How I'd like to test it
If CodeQuest is evaluated, it has to be done properly:
- Independent ethics review first.
- Written consent from a parent or guardian, plus the child's own agreement, and the freedom to withdraw at any time.
- Data limited to what the study needs, with no names, emails, chat questions or raw code exported, and results reported only as group totals.
- The plan registered before any data is collected.
I'd follow published ethics guidance such as BERA's Ethical Guidelines for Educational Research and the UK ICO's Children's code. If you're a researcher or teacher interested in an evaluation like this, I'd genuinely like to hear from you.
The short answer
How should kids aged 8+ learn Python? One idea at a time, with a working example first. They should predict before running, treat errors as part of the lesson, get hints that keep them thinking, and explain what happened to someone else. Use game elements to show progress, not to compare kids.
That's the design I've tried to build into CodeQuest. World 1 is free if you'd like to see how it feels for your child. Until it's properly tested, though, treat it as a well-reasoned hypothesis, not a proven result.
Further reading on this blog
- How to Teach Kids Python in 2027, Step by Step: a practical six-week plan for parents who don't code
- Best Homeschool Coding Curriculum in 2027: 8 Options Compared
- The Best Python Games for Kids in 2027: 9 Picks Compared
- CodeCombat Alternatives in 2027: 8 Options for Kids Compared
- Trinket Alternatives for Kids in 2027: 9 Options Compared
- Basics for kids: Python Variables Explained for Kids · Python Loops Explained with Fun Examples
Disclosure
Data: no data about children, parents or any other CodeQuest users was collected or analysed for this article. Conflict of interest: I'm the founder of CodeQuest. AI use: an AI assistant helped gather sources, check references, run the script check and draft text. I reviewed and edited it, and I'm responsible for its content.
References
- Atkinson, R. K., Derry, S. J., Renkl, A., & Wortham, D. (2000). Learning from examples: Instructional principles from the worked examples research. Review of Educational Research, 70(2), 181–214. https://doi.org/10.3102/00346543070002181
- Becker, B. A., Glanville, G., Iwashima, R., McDonnell, C., Goslin, K., & Mooney, C. (2016). Effective compiler error message enhancement for novice programming students. Computer Science Education, 26(2–3), 148–175. https://doi.org/10.1080/08993408.2016.1225464
- Becker, B. A., Denny, P., Pettit, R., et al. (2019). Compiler error messages considered unhelpful: The landscape of text-based programming error message research. ITiCSE Working Group Reports, 177–210. https://doi.org/10.1145/3344429.3372508
- British Educational Research Association. (2024). Ethical guidelines for educational research (5th ed.). https://www.bera.ac.uk/publication/ethical-guidelines-for-educational-research-2024
- Deterding, S., Dixon, D., Khaled, R., & Nacke, L. (2011). From game design elements to gamefulness: Defining "gamification". MindTrek '11, 9–15. https://doi.org/10.1145/2181037.2181040
- Grover, S., & Pea, R. (2013). Computational thinking in K–12: A review of the state of the field. Educational Researcher, 42(1), 38–43. https://doi.org/10.3102/0013189X12463051
- Hamari, J., Koivisto, J., & Sarsa, H. (2014). Does gamification work? A literature review of empirical studies on gamification. HICSS 2014, 3025–3034. https://doi.org/10.1109/HICSS.2014.377
- Hanus, M. D., & Fox, J. (2015). Assessing the effects of gamification in the classroom. Computers & Education, 80, 152–161. https://doi.org/10.1016/j.compedu.2014.08.019
- Hattie, J., & Timperley, H. (2007). The power of feedback. Review of Educational Research, 77(1), 81–112. https://doi.org/10.3102/003465430298487
- Information Commissioner's Office. (n.d.). Children's code guidance and resources. https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/childrens-information/childrens-code-guidance-and-resources/
- Kirschner, P. A., Sweller, J., & Clark, R. E. (2006). Why minimal guidance during instruction does not work. Educational Psychologist, 41(2), 75–86. https://doi.org/10.1207/s15326985ep4102_1
- Lopez, M., Whalley, J., Robbins, P., & Lister, R. (2008). Relationships between reading, tracing and writing skills in introductory programming. ICER '08, 101–112. https://doi.org/10.1145/1404520.1404531
- Lye, S. Y., & Koh, J. H. L. (2014). Review on teaching and learning of computational thinking through programming: What is next for K-12? Computers in Human Behavior, 41, 51–61. https://doi.org/10.1016/j.chb.2014.09.012
- Sailer, M., & Homner, L. (2020). The gamification of learning: A meta-analysis. Educational Psychology Review, 32(1), 77–112. https://doi.org/10.1007/s10648-019-09498-w
- Sentance, S., Waite, J., & Kallia, M. (2019). Teaching computer programming with PRIMM: A sociocultural perspective. Computer Science Education, 29(2–3), 136–176. https://doi.org/10.1080/08993408.2019.1608781
- Sweller, J. (1988). Cognitive load during problem solving: Effects on learning. Cognitive Science, 12(2), 257–285. https://doi.org/10.1207/s15516709cog1202_4
- Weintrop, D., & Wilensky, U. (2017). Comparing block-based and text-based programming in high school computer science classrooms. ACM Transactions on Computing Education, 18(1), 1–25. https://doi.org/10.1145/3089799
Keep exploring CodeQuest
Compare this learning path with related guides for families and beginners.
- How to Teach Kids Python in 2027, Step by Step
- The Best Python Games for Kids in 2027: 9 Picks Compared
- Free Python Lessons for Kids — Start with World 1
- Best Homeschool Coding Curriculum in 2027: 8 Options Compared
- CodeCombat Alternatives in 2027: 8 Options for Kids Compared
- Trinket Alternatives for Kids in 2027: 9 Options Compared
- Python Variables Explained for Kids
- Python Loops Explained with Fun Examples