What are the best coding classes in the Scottish Borders?
The Scottish Borders had about 116,900 residents in roughly 55,600 households at the 2022 census, living at 24.7 people per square kilometre. It has no single dominant town: Hawick and Galashiels are close in size, with Peebles, Kelso, Selkirk and Jedburgh next, and Eyemouth, Duns and Melrose among the rest. Lessons are given live over video by teachers in India, and a free first lesson places every learner, whether in P1, S6 or long out of school. Coding, Python and maths are open to anyone between six and 67, whether in a small class of five to ten or alone with a tutor. The Borders project begins at Melrose Abbey. Beyond the trial, Borders learners pay a monthly USD 100 for a class place or USD 150 for private lessons.
Historic Environment Scotland records that Melrose Abbey was founded in 1136 or 1137 by King David I, and that its monks even took a lade of water from a weir on the Tweed about 500 metres away. For a medieval religious house, one of the hardest recurring calculations was the date of Easter, which moves between March and April every year. It depends on a full moon and a Sunday, but in practice on arithmetic tables rather than the real sky. Today the rule fits in a dozen lines of code. This page's project writes those lines in Python and then does what any good programmer should: tests them against every year from 1583 to 4099, and finds that one famous formula needs two special cases to survive.
Facts last verified 26 September 2026. Teaching is online; no Scottish Borders branch is claimed.
A P2 in Hawick who loves calendars, a P6 in Peebles ready to type code, an S4 in Galashiels working towards National 5, and an adult in Kelso learning to automate. All of them start with the same free trial.

Block coding with counting, calendars and patterns that repeat.
See the syllabus
Remainders, cycles and number puzzles, made concrete with code.
See the syllabus
Algorithms for teenagers, with testing built in from the first program.
See the syllabus
Python for adults from the start, including dates, data and automation.
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 totals are rounded first results from the 2022 census, published by National Records of Scotland. Town sizes come from a separate NRS series for mid-2020.
| Locality | Residents | Locality | Residents |
|---|---|---|---|
| Hawick | 10,630 | Eyemouth | 3,580 |
| Galashiels | 10,060 | Langlee | 3,410 |
| Peebles | 9,000 | Innerleithen | 3,180 |
| Kelso | 6,870 | Burnfoot | 2,990 |
| Selkirk | 4,540 | Duns | 2,820 |
| Jedburgh | 3,860 | Melrose | 2,500 |
At 24.7 residents per square kilometre, the Borders are about a third as densely settled as Scotland overall, where the figure is 69.8. Summing the census age bands ourselves, we find 14.4 per cent of residents under 15 and 26.3 per cent aged 65 or over, against 15.3 and 20.1 for Scotland. Tweedbank is the next locality after the table. Term and holiday dates come from Scottish Borders Council, and rather than guess them we ask each household for its own.
The capital has its own Edinburgh page. For qualifications, see National 5 Maths and Higher Computing Science.
Two formulas, a trusted library, and 2,517 years of tests.
Easter Sunday is set by a rule: the first Sunday after the church's calculated full moon on or after 21 March. The calculated moon follows tables, not the real sky, so the whole thing reduces to whole-number arithmetic with remainders. The learner codes two famous versions. One, often called the anonymous Gregorian algorithm, is a chain of about a dozen divisions and remainders. The other, by the mathematician Carl Friedrich Gauss, is shorter but comes with two special exceptions. Both are then compared with the Easter function in a well-tested Python library, year by year from 1583 to 4099.
| Method | Years checked | Years wrong | Examples |
|---|---|---|---|
| Anonymous algorithm | 2,517 | 0 | None |
| Gauss, with both exceptions | 2,517 | 0 | None |
| Gauss, exceptions left out | 2,517 | 23 | 1954, 1981, 2049, 2076 |
| Easter 2026 and 2027 | Our code | Not applicable | 5 April 2026, 28 March 2027 |
Gauss's formula without its exceptions looks perfect for decades at a time, then fails. In 1981 it gives 26 April; the real date was 19 April. In 1954 it gives 25 April instead of 18 April, and the next failure is 2049. Only 23 years in more than 2,500 go wrong, which is exactly why the bug survives casual testing: try a handful of recent years and every answer is right. The two exception rules exist precisely to catch those cases.
With a trusted function, the learner can ask bigger questions. The Gregorian Easter pattern repeats only after 5,700,000 years, and a modern laptop can run the whole cycle in seconds. Easter can fall on 35 dates, from 22 March to 25 April. The most common is 19 April, 3.9 per cent of years; the rarest is 22 March, under half a per cent. Within 1900 to 2099, the earliest Easter was 23 March 1913 and the latest will be 25 April 2038. Fewer than a quarter of Easters fall in March.
Look up Easter for the last ten years, spot the pattern of moving dates, and build a Scratch quiz on them.
Code the anonymous algorithm in Python and compare its answers with a calendar for twenty years.
Implement Gauss with and without exceptions, test every year against the library, and count dates across the full cycle.
The abbey facts come from the Historic Environment Scotland record. The Easter dates, test counts and percentages come from our own program checked against the python-dateutil library; they do not describe how Melrose itself kept its calendar.
What the scheduled monument record says.
| Record detail | What it says |
|---|---|
| Founded | 1136 or 1137, by King David I |
| Water | A lade from a weir on the River Tweed about 500 metres to the west-northwest |
| Cloister | Unusually north of the church, to use the diverted waters of the Tweed |
| Rebuilding | After severe damage by an invading English army in 1385 |
| Later use | A barrel vault inserted around 1621, when the abbey served as a parish church |
| Setting | Beside the historic centre of Melrose, about 80 metres above sea level |
Rare-case bugs like Gauss's missing exceptions are the ones that reach real software: leap years, daylight saving changes, the last day of a month, the rollover to 2000. Calendars, booking systems and payroll programs all depend on date rules that are right almost always. A Borders pupil who has watched a formula fail in 1981 yet pass every year around it knows why professional code is tested against every case, not a sample.
Historic Environment Scotland and Scottish Borders Council have no connection with us. The record's facts are theirs; the Easter code, the tests and any mistakes are ours.
Stages are a starting guide; the free lesson confirms the level.
Block coding with counting, days and repeating patterns.
Coding for KidsScratch Coding for KidsTyped Python with division, remainders and simple date puzzles.
Maths Through CodingPython and AI for KidsAlgorithms and systematic testing beside National 5, Higher and Advanced Higher Computing Science.
Problem Solving for TeensPython for TeensPython for adults, including dates, schedules and data.
Python MasterclassData Analysis CourseA formula that is right almost every year is still wrong.
Ask a chatbot for a function that finds Easter and it may produce Gauss's short formula, sometimes without the two exceptions. Spot-checking recent years will not reveal the problem; only a full comparison against a trusted source does.
A Borders learner who has run the full test knows to check generated code exhaustively whenever the domain allows it. That discipline is the most valuable thing a person brings to AI-written code.
Hunting down the rare year where the answer breaks is a skill no AI supplies, and it is why a Borders teenager should still learn to code in 2026. The longer argument is in why teenagers should still learn to code in 2026.
Across a large rural council area, online lessons remove the drive to an evening club.
The learner writes every line; the teacher follows the shared screen and helps when it breaks.
A Galashiels S3 or a Hawick P6 hears the Curriculum for Excellence terms they already know, up to Advanced Higher. We teach in English.
A real lesson, no payment, and then honest advice.
Classes gather five to ten learners who share a stage, wherever in the world they happen to live.
Two lessons a week in term; none during the school holidays.
When British clocks go forward or back, your class stays at its usual UK hour; the teachers in India time are the ones who shift.
Why groups reach beyond one town
Five learners at the same stage, free at the same hour, rarely live in one Borders town. Grouping by stage across a wider pool gives a pupil in Duns or Innerleithen a class that fits.
Hawick or Eyemouth, the fee is the same, and it matches every country we teach outside India.
A complete free lesson, followed by a recommendation.
About eight lessons a month in a group of five to ten.
About eight lessons a month with one teacher.
All fees are in US dollars; there is no sterling price list. We bill only after the free lesson has set a course and weekly time, and the pricing page explains holidays, missed lessons and switching formats.
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
A line about the learner is enough: age or stage, plus something they enjoy. From that we plan a first lesson such as a Scratch game, some Python, or the Easter calculation on this page.
The council area, the Melrose Abbey project and practical points.
NRS rounds the 2022 census count to about 116,900 residents, in around 55,600 households.
NRS mid-2020 estimates: Hawick 10,630, Galashiels 10,060, Peebles 9,000, Kelso 6,870 and Selkirk 4,540.
Learners code two Easter formulas in Python, test both against a trusted library for every year from 1583 to 4099, and find that Gauss's formula without its exceptions is wrong in 23 years, including 1981.
Across the full 5,700,000-year Gregorian cycle, 19 April, in about 3.9 per cent of years, by our calculation.
Historic Environment Scotland says it was founded in 1136 or 1137 by King David I.
No building is involved. Pupils in Jedburgh, Selkirk or a farm near Duns connect by video from home.
Yes, along with Higher Maths and Computing Science. We teach understanding and make no promises about grades.
Anyone aged 6 to 67, from young children using blocks to adults starting Python.
One trial lesson at no charge; after it, a group seat is USD 100 per month and one-to-one tuition USD 150 per month.
We follow your school's calendar: when the Borders holidays begin, lessons stop, and they pick up again in the new term.
Next door in our series, Midlothian works out which faces of a sundial catch the sun, East Lothian models Bass Rock gannets and Dumfries and Galloway counts dark-sky stars. The full list is on our Scotland page. The UK hub covers the rest.