Skip to content
East Lothian

Coding classes in East Lothian

What are the best coding classes in East Lothian?

East Lothian is a single council area, home to about 112,300 people in roughly 48,800 households at the 2022 census, at 165.3 people per square kilometre. Musselburgh is the largest town, followed by Tranent, Prestonpans, Haddington and Dunbar, with North Berwick on the coast. Our teachers are in India and teach in real time on camera; a free first lesson sets the level for every learner, whether they are in Primary 1, S6 or long past school. Anyone aged 6 to 67 can study coding, Python or maths, alone with a teacher or among five to ten classmates. The East Lothian project looks out to the Bass Rock and its gannets. A first lesson is free of charge; continuing is USD 100 a month in a group or USD 150 a month one-to-one.

The Scottish Seabird Centre in North Berwick trains live cameras on the Bass Rock, which it calls one of the world's largest Northern gannet colonies, and Historic Environment Scotland lists the lighthouse David Alan Stevenson built on the rock in 1902. Gannets eat fish, and predator and prey numbers affect each other: more fish feed more birds, more birds eat down the fish, fewer fish mean fewer birds, and the cycle repeats. Two short equations, the Lotka-Volterra model, capture that loop. This page's project runs them in Python with invented numbers, watches the cycles and the lag between them, and uses a quantity the equations should keep constant to catch a numerical method that quietly goes wrong.

Facts last verified 26 September 2026. Teaching is online; no East Lothian branch is claimed.

Courses for East Lothian

Where East Lothian learners begin

A P4 pupil in Dunbar who loves seabirds, an S1 in Tranent starting Python, an S5 in Haddington taking Higher Maths, and an adult in Musselburgh building models at work. All four start the same way, with a lesson that costs nothing.

Browse the course atlas for more than one hundred options and use the coding roadmap to check prerequisites.

The four we are known for

Python, AI, vibe coding and agentic coding

These run underneath everything above. Every one is live and online, placed by ability rather than by age, and the first class is free.

East Lothian in figures

About 112,300 people in East Lothian

Council-wide figures below come from the first 2022 census results, which NRS rounds to the nearest hundred. Town sizes are NRS locality estimates for mid-2020.

East Lothian localities above 2,000 people, NRS mid-2020 estimates
LocalityResidentsLocalityResidents
Musselburgh21,100Cockenzie5,370
Tranent11,910Wallyford3,370
Prestonpans10,460Gullane2,810
Haddington10,360Longniddry2,340
Dunbar10,270Ormiston2,110
North Berwick7,840

East Lothian has 165.3 residents per square kilometre, well above the Scottish 69.8. Summing the age bands ourselves, we get 16.7 per cent of East Lothian residents under 15, against 15.3 per cent nationally, and 21.2 per cent aged 65 and over, against 20.1. East Linton is the next town after the table. East Lothian Council sets the school terms; we have not read its calendar and arrange breaks with each family.

Edinburgh next door

The capital has its own page, Edinburgh. For Scottish exams, see National 5 Maths and Higher Maths.

The East Lothian project

Gannets, fish and a cycle that repeats

Two equations, two ways of solving them, and a number that should never change.

The model is invented, not a survey of the Bass Rock. Fish grow on their own and are eaten when they meet gannets; gannets thrive when they catch fish and decline without them. In symbols, the fish change at a rate of x minus 0.02xy and the gannets at 0.01xy minus 0.8y. Starting from 60 units of fish and 40 of gannets, the learner steps the equations forward in time with a method called RK4, in hundredths of a year, for fifty years.

Our Lotka-Volterra runs over fifty years, 26 September 2026
Method and stepFish rangeGannet rangeDrift in the conserved quantity
RK4, step 0.01 year54.2 to 112.935.4 to 68.1None to two decimal places
Euler, step 0.01 year49.6 to 120.233.0 to 72.4+0.47 per cent
Euler, step 0.05 year24.9 to 175.720.4 to 104.7+5.98 per cent

With RK4 the two populations rise and fall forever in a steady loop. Fish peak every 7.09 years, and gannets peak about 1.52 years after each fish peak: the predators need time to breed on the back of plenty, by which point the fish are already falling. Neither ever settles at the balance point of 80 fish and 50 gannets unless it starts there. The lag between prey and predator peaks is the signature of this kind of system, and ecologists look for it in real records.

Now the check. These equations have a hidden quantity that stays exactly the same along any true solution, a mixture of the two populations and their logarithms. RK4 keeps it constant. The simpler Euler method, which takes each step in a straight line, lets it creep upwards, and with larger steps the cycles spiral outwards: fish peaks grow from 120.7 to 175.7 over the fifty years. The graph still looks like a plausible ecosystem, yet it is an artefact of the method. A quantity that must not change is one of the strongest tests a simulation can have.

Ages 8 to 11

Play a counting game with beads for fish and counters for birds, round by round, and record how both numbers change.

Ages 11 to 15

Write the Euler step in Python, plot fish and gannets over time, and measure the gap between their peaks.

Ages 15 and up

Add RK4, compute the conserved quantity at every step, and compare how each method behaves as the step size grows.

Real place, invented numbers

The Bass Rock facts come from the Scottish Seabird Centre and Historic Environment Scotland. The model, its parameters and every result are invented for teaching; they do not describe the real gannet colony or the fish it feeds on.

Why the Bass Rock

A gannet colony and a Stevenson lighthouse

The East Lothian link, from the people who watch and list it.

The Bass Rock in its sources
SourceWhat it says
Scottish Seabird CentreIts live cameras show the Bass Rock, one of the world's largest Northern gannet colonies.
HES listing LB14738A lighthouse by David Alan Stevenson, 1902, Category C.
HES listing LB14738Built on a fortified outcrop, on the site of the Governor's House of Bass Rock Castle.

Models of populations that feed on each other are used for fish stocks, disease spread, pests and crops, and even for competing apps and products. The lessons of this project, cycles, lags and the need to check the method, carry straight across. An East Lothian student who has watched a simulation invent a boom that does not exist has learned to test a model before believing its story.

We have no link with the Scottish Seabird Centre, Historic Environment Scotland or East Lothian Council. What the two bodies publish belongs to them; the equations, numbers and errors on this page belong to us.

Nearby pages

Edinburgh lies west. For coding exams, see National 5 Computing Science and Higher Computing Science. The Scotland page lists every council.

The path

From population games to simulation

The free lesson decides the first step. Stage suggests, ability decides.

P1 to P4

Counting creatures

Block coding games where animals appear, move and multiply.

Coding for KidsScratch Coding for Kids
P5 to S2

Growth in Python

Typed Python and maths with growth, rates and graphs over time.

Maths Through CodingPython and AI for Kids
S3 to S6

Modelling change

Rates of change, calculus and simulation, alongside National 5, Higher and Advanced Higher Maths.

High School MathematicsPython for Teens
Adults

Models you can trust

Python for adults who build simulations and forecasts and need them checked.

Python MasterclassData Analysis Course
AI and simulations

An AI can write a population model in seconds. Will it test whether the answer drifts?

A simulation can look right and still be wrong.

Ask an assistant for a predator-prey simulation and it will often write the simplest version, the Euler method, and draw a convincing graph. With a large step the cycles grow every time round, and the graph shows a booming ecosystem that the equations themselves do not predict. Nothing in the picture warns you.

An East Lothian student who has tracked the conserved quantity knows how to catch this: find something that should not change, and check it. That habit applies to any model an AI helps build, in science, business or engineering.

That is why coding still matters for an East Lothian teenager in 2026: it teaches you to question a simulation before trusting it. The longer argument is in why teenagers should still learn to code in 2026.

How lessons work

Musselburgh to Dunbar, online

East Lothian has towns and villages of every size, and an evening class in Edinburgh means getting there and back. Lessons at home need no journey.

Right at home

A flat in Musselburgh, a house in Gullane, a cottage near East Linton. The pupil codes and the teacher follows the shared screen.

Scottish stages spoken here

P1 to P7, S1 to S6, National 5, Higher, Advanced Higher: the terms East Lothian pupils use are the ones we use, in English.

First lesson free

Real coding from the first minute, then our view of where the learner should start. No card details are asked for.

Classmates at your stage

Five to ten learners working at one level, drawn from many countries.

School holiday breaks

Two lessons a week during term; we pause for the holidays.

UK time, all year

We book your lesson in UK time and hold it there through the clock changes, while teachers in India time adjust their side.

Why groups follow level

Five learners at one stage free on the same evening are rarely neighbours, even in Musselburgh. Grouping by level lets a pupil in Ormiston or Longniddry join the right class.

Fees

Fees in East Lothian

A learner in Tranent pays what one in North Berwick pays, the rate we charge in every country outside India.

First classUSD 0

A full lesson of real work, then a suggested level and course.

Group tuitionUSD 100

About eight lessons a month with five to ten learners at one level.

Private tuitionUSD 150

About eight lessons a month, one-to-one.

Fees are set in US dollars; there are no sterling prices. We bill only once the free lesson has fixed a course and a weekly time, and the pricing page covers holidays, missed lessons and changes of format.

Reviews

Google reviews from parents and learners

Rated 4.9 across 547 Google reviews. These are real reviews, reproduced as written.

★★★★★

"The one step solution for my son. Modern Age Coders make learning coding so simple that kids love it. The teachers explain complex concepts clearly with practical exercises and interactive content."

Ria Mukherjee

Parent

★★★★★

"Modern Age Coders has been a game-changer for me. I struggled to grasp IT concepts and coding before joining, but their classes transformed everything. I can now confidently write complex programs with ease."

Samriddha Mondal

Student

★★★★★

"One of the most wonderful education centres out there. Education is not limited to school syllabus but focuses on skill development."

Vansh Agarwal

Student

★★★★★

"My child Dhairya is really enjoying the Modern Age Coders classes. This is his first online class and he eagerly looks forward to it. I can already see his improvement, and the teachers are very cooperative."

Sonam Oswal

Parent of Dhairya

★★★★★

"Modern Age Coders have wonderful teachers who teach in a clear, easy and practical way. The teacher boosts students' confidence and inspires them to learn without hesitation."

Sonu Goyal

Parent

★★★★★

"I highly recommend this computer coding class! The teachers are incredibly knowledgeable and passionate about coding."

Ritu Kedia

Parent

Free placement class

Book a free East Lothian lesson

Tell us who is learning, their P or S stage (or an adult goal), and what excites them. A first lesson could be a Scratch animal game, a Python growth graph, or the gannet model on this page.

+44

FAQ

East Lothian questions

The council area, the Bass Rock project and practical details.

How many people live in East Lothian?

The 2022 census put it at about 112,300 residents living in roughly 48,800 households, as rounded by NRS.

What are the largest towns in East Lothian?

By NRS mid-2020 locality estimates: Musselburgh 21,100, Tranent 11,910, Prestonpans 10,460, Haddington 10,360 and Dunbar 10,270.

What is the Bass Rock project?

Learners model gannets and fish with the Lotka-Volterra equations in Python, using invented numbers, find cycles about 7.1 years long with gannets peaking 1.5 years after fish, and use a conserved quantity to show the simple Euler method drifts.

What are the Lotka-Volterra equations?

Two equations for how a predator and its prey affect each other's numbers. They produce repeating cycles in which the predator peaks after the prey.

Is the Bass Rock a gannet colony?

The Scottish Seabird Centre describes it as one of the world's largest Northern gannet colonies, and shows it on live cameras.

Are lessons held in East Lothian?

No. Every class runs over video, so a pupil in Gullane joins exactly as one in Wallyford does.

Do you teach Higher Maths?

Yes, from National 5 through Higher, with dedicated pages for both; the aim is real understanding, and nobody can promise a grade.

What ages can learn?

From 6 up to 67. Younger children drag blocks, most move to Python near P6, secondary pupils add modelling and exam maths, and adults start Python at any point.

How much do lessons cost?

The first lesson is free. After that it is USD 100 a month in a group or USD 150 a month one-to-one.

Do you pause for East Lothian school holidays?

Yes. Tell us the dates your East Lothian school gives you and lessons stop for those weeks.

Close by

Pages near East Lothian

Look west to Edinburgh or browse every council on our Scotland page. The UK hub covers everywhere else.

Free East Lothian classCall +91 91233 66161

Keep exploring Modern Age Coders

Coding classes in nearby places

Free resources

From the blog

Start here