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.
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.

Block coding from a first Scratch game onwards, including simple animal population games.
See the syllabus
Maths learned by coding it, with growth, rates of change and graphs built in Python.
See the syllabus
Secondary maths in depth, with calculus and rates of change that models like this rely on.
See the syllabus
Python from zero for adults, up to simulations and models checked properly.
See the syllabusBrowse the course atlas for more than one hundred options and use the coding roadmap to check prerequisites.
The four we are known for
These run underneath everything above. Every one is live and online, placed by ability rather than by age, and the first class is free.

Python, web and AI projects where the learner still owns the thinking.
See the syllabus
Automate the work you already do, then let AI carry part of it.
See the syllabus
Train a model, read what it learned, and be able to say why it is wrong.
See the syllabus
Run AI coding agents on real work without losing control of the codebase.
See the syllabusCouncil-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.
| Locality | Residents | Locality | Residents |
|---|---|---|---|
| Musselburgh | 21,100 | Cockenzie | 5,370 |
| Tranent | 11,910 | Wallyford | 3,370 |
| Prestonpans | 10,460 | Gullane | 2,810 |
| Haddington | 10,360 | Longniddry | 2,340 |
| Dunbar | 10,270 | Ormiston | 2,110 |
| North Berwick | 7,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.
The capital has its own page, Edinburgh. For Scottish exams, see National 5 Maths and Higher Maths.
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.
| Method and step | Fish range | Gannet range | Drift in the conserved quantity |
|---|---|---|---|
| RK4, step 0.01 year | 54.2 to 112.9 | 35.4 to 68.1 | None to two decimal places |
| Euler, step 0.01 year | 49.6 to 120.2 | 33.0 to 72.4 | +0.47 per cent |
| Euler, step 0.05 year | 24.9 to 175.7 | 20.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.
Play a counting game with beads for fish and counters for birds, round by round, and record how both numbers change.
Write the Euler step in Python, plot fish and gannets over time, and measure the gap between their peaks.
Add RK4, compute the conserved quantity at every step, and compare how each method behaves as the step size grows.
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.
The East Lothian link, from the people who watch and list it.
| Source | What it says |
|---|---|
| Scottish Seabird Centre | Its live cameras show the Bass Rock, one of the world's largest Northern gannet colonies. |
| HES listing LB14738 | A lighthouse by David Alan Stevenson, 1902, Category C. |
| HES listing LB14738 | Built 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 free lesson decides the first step. Stage suggests, ability decides.
Block coding games where animals appear, move and multiply.
Coding for KidsScratch Coding for KidsTyped Python and maths with growth, rates and graphs over time.
Maths Through CodingPython and AI for KidsRates of change, calculus and simulation, alongside National 5, Higher and Advanced Higher Maths.
High School MathematicsPython for TeensPython for adults who build simulations and forecasts and need them checked.
Python MasterclassData Analysis CourseA 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.
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.
A flat in Musselburgh, a house in Gullane, a cottage near East Linton. The pupil codes and the teacher follows the shared screen.
P1 to P7, S1 to S6, National 5, Higher, Advanced Higher: the terms East Lothian pupils use are the ones we use, in English.
Real coding from the first minute, then our view of where the learner should start. No card details are asked for.
Five to ten learners working at one level, drawn from many countries.
Two lessons a week during term; we pause for the holidays.
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.
A learner in Tranent pays what one in North Berwick pays, the rate we charge in every country outside India.
A full lesson of real work, then a suggested level and course.
About eight lessons a month with five to ten learners at one level.
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.
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
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.
The council area, the Bass Rock project and practical details.
The 2022 census put it at about 112,300 residents living in roughly 48,800 households, as rounded by NRS.
By NRS mid-2020 locality estimates: Musselburgh 21,100, Tranent 11,910, Prestonpans 10,460, Haddington 10,360 and Dunbar 10,270.
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.
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.
The Scottish Seabird Centre describes it as one of the world's largest Northern gannet colonies, and shows it on live cameras.
No. Every class runs over video, so a pupil in Gullane joins exactly as one in Wallyford does.
Yes, from National 5 through Higher, with dedicated pages for both; the aim is real understanding, and nobody can promise a grade.
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.
The first lesson is free. After that it is USD 100 a month in a group or USD 150 a month one-to-one.
Yes. Tell us the dates your East Lothian school gives you and lessons stop for those weeks.