---
title: "Coding Classes in East Lothian | Live Online, Ages 6 to 67"
description: "Live online coding, Python and maths classes across East Lothian, from Musselburgh, Tranent and Prestonpans to Haddington, Dunbar and North Berwick."
canonical: https://learn.modernagecoders.com/coding-classes-in-east-lothian
source: src/pages/coding-classes-in-east-lothian.html
---
> Live online coding, Python and maths classes across East Lothian, from Musselburgh, Tranent and Prestonpans to Haddington, Dunbar and North Berwick.

Skip to contentCourses 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.

[![Coding for Kids course thumbnail](/images/kids-coding.webp)Ages 6 to 12Coding for KidsBlock coding from a first Scratch game onwards, including simple animal population games.See the syllabus](/courses/kids-coding-blocks-masterclass)[![Maths Through Coding course thumbnail](/images/maths-through-coding.webp)Ages 10 to 15Maths Through CodingMaths learned by coding it, with growth, rates of change and graphs built in Python.See the syllabus](/courses/maths-through-coding)[![High School Mathematics course thumbnail](/images/high-school-maths.webp)Ages 14 to 18High School MathematicsSecondary maths in depth, with calculus and rates of change that models like this rely on.See the syllabus](/courses/complete-high-school-mathematics-mastery)[![Python Masterclass course thumbnail](/images/python-college.webp)AdultsPython MasterclassPython from zero for adults, up to simulations and models checked properly.See the syllabus](/courses/python-programming-masterclass-zero-to-advanced-college)

Browse the [course atlas](/course-atlas) for more than one hundred options and use the [coding roadmap](/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.

[![Vibe Coding for Teens course thumbnail](/images/vibe-coding-teens.webp)Vibe codingAges 13 to 17Vibe Coding for TeensPython, web and AI projects where the learner still owns the thinking.See the syllabus](/courses/vibe-coding-for-teens-python-web-ai-projects-course)[![Python Automation Course course thumbnail](/images/python-college.webp)Python and AICollege and adultPython Automation CourseAutomate the work you already do, then let AI carry part of it.See the syllabus](/courses/python-ai-automation-masterclass-college)[![AI and Machine Learning for Teens course thumbnail](/images/ai-ml-teens.webp)AI and MLAges 14 to 18AI and Machine Learning for TeensTrain a model, read what it learned, and be able to say why it is wrong.See the syllabus](/courses/ai-ml-masterclass-teens)[![Codex & Claude Code course thumbnail](/images/codex-claude-code-adults.webp)Agentic codingProfessionalsCodex & Claude CodeRun AI coding agents on real work without losing control of the codebase.See the syllabus](/courses/codex-and-claude-code-ai-coding-agents-masterclass-for-adults-professionals)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.

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

### Edinburgh next door

The capital has its own page, [Edinburgh](/best-coding-class-in-edinburgh). For Scottish exams, see [National 5 Maths](/national-5-maths-tuition-online) and [Higher Maths](/higher-maths-tuition-online).

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.

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

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

| 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](/best-coding-class-in-edinburgh) lies west. For coding exams, see [National 5 Computing Science](/national-5-computing-science-help) and [Higher Computing Science](/higher-computing-science-help). The [Scotland](/coding-and-ai-classes-in-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 Kids](/courses/kids-coding-blocks-masterclass)[Scratch Coding for Kids](/courses/scratch-programming-complete-course)P5 to S2

### Growth in Python

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

[Maths Through Coding](/courses/maths-through-coding)[Python and AI for Kids](/courses/python-ai-kids-masterclass)S3 to S6

### Modelling change

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

[High School Mathematics](/courses/complete-high-school-mathematics-mastery)[Python for Teens](/courses/python-complete-masterclass-teens)Adults

### Models you can trust

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

[Python Masterclass](/courses/python-programming-masterclass-zero-to-advanced-college)[Data Analysis Course](/courses/data-analysis-mastery-course-college)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](/blog/is-coding-worth-learning-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 class**USD 0**

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

Group tuition**USD 100**

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

Private tuition**USD 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.

Request placement[Check availability](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20we%20are%20in%20East%20Lothian%20and%20would%20like%20to%20book%20a%20free%20lesson%2C%20please.)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.

### Contact the team directly

WhatsApp or call [+91 91233 66161](tel:+919123366161), or email [contact@modernagecoders.com](mailto:contact@modernagecoders.com). This is Modern Age Coders' actual contact, an Indian number, and not an invented East Lothian one.

[WhatsApp Modern Age Coders](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20we%20are%20in%20East%20Lothian%20and%20would%20like%20to%20book%20a%20free%20lesson%2C%20please.)

Submitted details are used for placement and follow-up.

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](/best-coding-class-in-edinburgh) or browse every council on our [Scotland](/coding-and-ai-classes-in-scotland) page. The [UK hub](/coding-classes-in-united-kingdom) covers everywhere else.

Book the free class[Message us on WhatsApp](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20we%20are%20in%20East%20Lothian%20and%20would%20like%20to%20book%20a%20free%20lesson%2C%20please.)Free East Lothian class[Call +91 91233 66161](tel:+919123366161)

## Keep exploring Modern Age Coders

### Coding classes in nearby places

- [Coding Classes in East Renfrewshire](/coding-classes-in-east-renfrewshire)
- [Coding Classes in East Dunbartonshire](/coding-classes-in-east-dunbartonshire)
- [Coding Classes in the East Riding](/coding-classes-in-east-riding-of-yorkshire)
- [Coding Classes in East Ayrshire](/coding-classes-in-east-ayrshire)
- [Coding Classes in East Sussex](/coding-classes-in-east-sussex)
- [Coding Classes in Dún Laoghaire-Rathdown](/coding-classes-in-dun-laoghaire-rathdown)
- [Coding Classes in Lancashire](/coding-classes-in-lancashire)
- [Coding Classes in Laak, The Hague](/coding-classes-in-laak)
- [Coding Classes in Kent](/coding-classes-in-kent)

### Free resources

- [Java Tutorial for Beginners to Advanced](/resources/java)
- [Indexes and Query Performance](/resources/sql/indexes-and-performance)
- [Java Memory Model and Garbage Collection](/resources/java/java-memory-and-garbage-collection)
- [Setting Up MySQL and Your First Query](/resources/sql/setting-up-mysql-and-first-query)

### From the blog

- [How to Read and Write Files in Python (The Complete Guide)](/blog/how-to-read-and-write-files-in-python)
- [How to Help With Maths Homework (Without Solving It)](/blog/help-child-with-maths-homework)
- [Fibonacci Series in Python: 7 Ways to Write It](/blog/fibonacci-series-in-python)

### Start here

- [Modern Age Coders pricing, one honest price per plan](/pricing)
- [How Modern Age Coders teaches, small batches and real projects](/how-we-teach)

---

*Canonical: https://learn.modernagecoders.com/coding-classes-in-east-lothian*
