Skip to main content

Coding for kids and teens: where to start, by age

6 min readUpdated

Children can start coding much earlier than most parents think, but the right first step depends on age. This guide explains what to learn at each stage, how to move from block coding to a real language like Python, and what a healthy weekly routine looks like.

What to learn at each age

AgeGood starting pointWhy
7 to 10Block coding such as ScratchDrag-and-drop blocks teach sequences, loops and conditions without typing errors
11 to 13PythonShort, readable code; quick wins with games, quizzes and drawings
14 to 16Python or Java, guided by school examsExam courses such as GCSE, IGCSE, IB and AP use these languages
16 and aboveData structures, algorithms and projectsPrepares for competitions such as USACO, university courses and internships

A first Python program

A tiny number-guessing gamepython
secret = 7
guess = int(input("Guess a number from 1 to 10: "))
while guess != secret:
    if guess < secret:
        print("Too low!")
    else:
        print("Too high!")
    guess = int(input("Try again: "))
print("You got it!")

First projects that keep children motivated

  • A quiz about their favourite topic.
  • A number-guessing or rock-paper-scissors game.
  • A times-table tester that keeps score.
  • A story generator that mixes random words.
  • A simple calculator, then a unit converter.

Habits that matter more than the course

  • Short, regular sessions: 30 to 45 minutes, three or four times a week, beat one long weekend session.
  • Type the code instead of copying it; mistakes are how children learn.
  • Finish small projects and show them to family; finishing builds confidence.
  • Let them change and break example programs; curiosity is the goal.

When a child is ready for structured lessons, a mentor who reviews their code and explains mistakes speeds things up more than any app.

Frequently asked questions

What is the best age to start coding?

Around 7 or 8 with block coding, and around 11 with a typed language like Python. Older beginners can start straight with Python.

Should my child learn Python or Java first?

Python is usually the easier first language. Java makes sense when a school exam course, such as AP Computer Science A, uses it.

How much time should children spend coding each week?

Two to three hours a week in short sessions is plenty for steady progress.

Practise this, step by step

Short lessons with quizzes, practice and interview questions, from your first program to job-ready.

Python Programming course: syllabus and 1:1 mentoringCore Python from zero to functions, collections, files, OOP and algorithms.