What are the best coding classes in Perth, Scotland?
Perth and Kinross had about 150,800 usual residents at Scotland's 2022 census, a figure National Records of Scotland rounds to the nearest hundred, with 24.7% of them aged 65 or over. Historic Environment Scotland records that John Smeaton built Perth Bridge over the Tay between 1766 and 1771. Perth learners aged six to sixty-seven join live video classes led by our teachers in India, taught privately or with five to ten others at their level, and timed to suit the Scottish school week and working day. There is no fee for lesson one, and afterwards a class place is USD 100 a month while one-to-one lessons are USD 150.
Walter Scott set The Fair Maid of Perth in the city, and wrote that Perth was "so eminent for the beauty of its situation". His novel is full of names: Catharine, Henry, Simon, the apothecary Henbane Dwining. Our Perth project asks whether a computer can recognise those names when they are spelt differently, using Soundex, a code that turns a name into a letter and three digits by how it sounds. Teenagers build Soundex from the US National Archives' rules, test it on the Archives' own examples, then run it over the whole book. It correctly pairs Johnston with Johnstone, but it also files Dwining with Dominican, and John with Joan.
Facts last verified 23 September 2026. Teaching is online; no Perth branch is claimed.
Match the course to whatever the learner is already keen on. All four open with a free live lesson, booked without a card.

Block programming for younger children, from word games to a secret-code machine that turns names into numbers.
See the syllabus
First Python with strings and lists, enough to split a book into words and count the ones that begin with a capital.
See the syllabus
Python from first lines to full projects, enough to build Soundex from its official rules and run it over a whole novel.
See the syllabus
Python for adults who match names, addresses or records that are spelt differently in different places.
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 syllabusPerth sits in the Perth and Kinross council area. The first results of Scotland's 2022 census, from National Records of Scotland, are published by council area with every figure rounded to the nearest hundred.
| Council area or country | Residents counted in 2011 | Residents in 2022, rounded | Residents to each square kilometre, 2022 |
|---|---|---|---|
| Perth and Kinross | 146,652 | 150,800 | 28.5 |
| Scotland | 5,295,403 | 5,436,600 | 69.8 |
The council area had around 70,000 households with at least one usual resident in 2022, compared with 64,777 counted in 2011.
Residents aged 65 and above made up 24.7% of Perth and Kinross in 2022, the Scottish figure being 20.1%; children up to 14 were 14.7%, against 15.3%.
With 28.5 residents to the square kilometre, Perth and Kinross is well below the Scottish average of 69.8.
Since National Records of Scotland rounds each 2022 figure independently, we give every number exactly as published rather than adding them up. Our Perth classes gather learners from the city and the villages around it. A Letham seven-year-old coding a first quiz, an S4 pupil from Craigie heading for National 5 Computing Science and a Kinnoull adult learning Python to clean up a mailing list might each find a class at a different level.
From Historic Environment Scotland's listing records, and from the text of Walter Scott's novel as published by Project Gutenberg.
Historic Environment Scotland records that the choir of St John's Kirk was completed by 1448, and that its central tower and spire, 155 feet high, were completed by 1511. The kirk is listed at Category A.
Perth Bridge was built by John Smeaton in these years, of pink Perth sandstone, and widened in 1869. The listing notes that ferries carried people across the river until the bridge was finished in 1771.
Scott writes that, by old tradition, the Romans likened the Tay to the Tiber, and the large level space known as the North Inch to an open field of their own city.
Historic Environment Scotland also lists St Ninian's Cathedral, the A K Bell Library, the former King James VI Hospital, Greyfriars Burial Ground and the Lower City Mills at Category A. Scott's novel, free on Project Gutenberg, runs to 185,409 words and mentions Perth 224 times. We have no connection with Historic Environment Scotland or Project Gutenberg, and the dates and quotations here are theirs.
Where the rules come from
The US National Archives publishes the Soundex coding guide on its page about the Soundex indexing system: B, F, P and V become 1; C, G, J, K, Q, S, X and Z become 2; D and T become 3; L becomes 4; M and N become 5; R becomes 6; vowels, H, W and Y are dropped, with rules for doubled letters and neighbours sharing a number.
Soundex keeps a name's first letter and turns the next three consonant sounds into digits, so names that sound alike get the same code. It was designed for surname indexes. The question is how well it copes with a real book.
| Code | Words that share it | What the match really is |
|---|---|---|
| J523 | Johnston 13, Johnstone 6 | The same name spelt two ways |
| C365 | Catharine 357, Catherine 1 | The same name spelt two ways |
| D552 | Dwining 107, Dominican 19, Dominic 5 | A character and an order of friars |
| J500 | John 147, Joan 3 | Two different names |
| C623 | Craigdallie 35, Christian 23 | A surname and a word of faith |
| L535 | London 4, Lundin 3 | A city and a surname |
Code the rules exactly as the National Archives state them, then check all seven of their worked examples, from Washington (W252) to Ashcraft (A261). All seven must match before the book is touched.
Split the novel into 185,409 words and keep capitalised words that never appear in lower case and occur at least three times: 212 spellings, used 5,170 times.
Give each spelling its code. The 212 spellings fall into 180 codes, and 19 codes are shared by two or more spellings. Then read every group and decide whether the match is real.
Soundex gets the easy cases: Johnston and Johnstone, Catharine and the single Catherine, and plurals such as Highland, Highlanders and Highlandmen. But many shared codes are coincidences. The apothecary Dwining lands with Dominican friars, John with Joan, Craigdallie with Christian, Percy with Paris and London with Lundin. And because the first letter is kept, Soundex can never pair names that start differently, however alike they sound. A tool that is right about some matches and wrong about others needs a person to check its output.
The implementation also exposed a gap in the rules. The Archives list Y among the letters to ignore but name only A, E, I, O and U as the vowels that separate two consonants with the same number. Our code treats Y like a vowel there, and says so. Writing down an assumption where the specification is silent is part of building anything from rules.
Learned on Scott's Perth, then used for customer records, family history, school registers, address lists and any database where one person appears under several spellings.
| Question | For The Fair Maid of Perth | What goes wrong if you skip it |
|---|---|---|
| Does the code follow the specification? | All seven National Archives examples reproduced | A matcher that is subtly wrong from the start |
| What counts as a name? | Capitalised, never lower case, three or more uses | Ordinary words swamping the groups |
| Which matches are real? | Every shared code read by a person | John and Joan merged into one record |
| What can it never find? | Names with different first letters | Missed matches nobody knows about |
| Where are the rules unclear? | The Y rule written down as an assumption | Two programs giving different answers |
The third row is the heart of it. A matching tool produces two kinds of mistake: false matches, where different names share a code, and misses, where the same name gets two codes. Soundex makes both. Counting them honestly on a real text shows a learner why no automatic matcher should merge records without a check.
Inventing a secret code for names, then finding two classmates whose names come out the same.
String handling, rule-based algorithms and error counting in Python, on a 185,409-word novel.
Matching names and records across systems, and deciding where a person must review the result.
We have no connection with the US National Archives, Project Gutenberg, Historic Environment Scotland or Perth and Kinross Council. The novel, rules, listing records and census tables are published openly; the code, groupings and counts on this page are our own work.
Treat the ages as a starting guess; the free lesson settles the real level.
Turning names into codes with simple rules in block code, and spotting when two names clash.
Scratch Coding for KidsCoding for KidsStrings, loops and dictionaries in Python, counting words and grouping them by a rule.
Python and AI for KidsMaths Through CodingSoundex built from its official rules, tested on examples, then measured on a real novel.
Python for TeensProblem Solving for TeensMatching and cleaning names and addresses, with false matches and misses counted rather than hidden.
Python MasterclassData Analysis CourseBecause every matching method, from a simple rule-based code to a modern model, makes both kinds of mistake, and someone has to count them.
Soundex is simple enough to understand completely: a learner can say exactly why it put Dwining with Dominican. Modern AI matchers are far more capable, but their reasons are much harder to see. Having measured the mistakes of a transparent method first, a learner knows what questions to ask of an opaque one.
The project also practises building from a specification: reading the rules, testing on the official examples and writing down the one place the rules leave open. That discipline matters more, not less, when code is written with AI help.
So a Perth teenager should keep learning to code in 2026, in the city where Scott set a novel full of names: AI can suggest a match in an instant, but people still decide whether John really is Joan. The longer argument is in why coding is worth learning in 2026.
Perth learners live on both banks of the Tay and in villages across a council area with 28.5 people to the square kilometre. Online, all of them are the same short step from the lesson.
A learner in Muirton and another in Kinfauns can sit in the same class without either crossing the river.
Placement follows the Scottish stages, primary to S6 with National 5, Higher and Advanced Higher along the way; lessons themselves are in English.
No slides and no sales pitch: the learner writes real code, and the teacher then proposes a level, a course and a regular weekly time. We never take card details.
Five to ten learners at one level, drawn from Perth, the rest of the UK and further afield, keeping good times open at each stage.
Two set lessons every week, about eight a month, with holidays and exam study worked out with the teacher ahead of time.
India stays on one time zone all year, so a class at five in the afternoon in Perth begins at half past nine at night for our teachers in summer, and half past ten in winter.
Around Perth and Kinross
Learners in Crieff, Blairgowrie, Kinross or Pitlochry join exactly the same classes, since every lesson is online and classes are set by level.
No charge for the first lesson, and a single monthly fee after that.
A full lesson free of charge, closing with a recommended level, course and weekly time.
Roughly eight live lessons a month, in a class of five to ten learners at the same stage.
Roughly eight live lessons a month, the teacher working with your learner alone.
Families in Gannochy or Moncreiffe are billed in US dollars, like everyone outside India, and our site never quotes pound prices. Billing starts only after the free lesson, when a course and a weekly time have been agreed with us; the pricing page explains pausing, missed lessons and changing between group and private teaching.
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
We shape the first lesson to the learner: a name-code game for a young child, a short Python program that counts capital letters in a paragraph for a beginner, or Scott's novel and Soundex for a teenager ready to build an algorithm from its specification.
The questions Perth families most often ask.
Scotland's Census 2022 counted about 150,800 usual residents in Perth and Kinross, rounded to the nearest hundred by National Records of Scotland, against 146,652 at the 2011 census.
It is far less crowded, with 28.5 residents per square kilometre where Scotland has 69.8, and its population is older, with 24.7% aged 65 or over in 2022 compared with 20.1% nationally.
A code for names: keep the first letter, turn the next consonant sounds into digits by a fixed table, drop vowels and a few other letters, and pad or cut to four characters. Names that sound alike often, but not always, get the same code.
It groups the novel's 212 name-like spellings into 180 codes. It correctly pairs Johnston with Johnstone, but it also puts Dwining with Dominican and John with Joan, so every match needs checking.
The Soundex rules and worked examples come from the US National Archives, and the novel from Project Gutenberg's free ebook of The Fair Maid of Perth. We are not connected with either.
Historic Environment Scotland records that John Smeaton built it between 1766 and 1771, in pink Perth sandstone, and that it was widened in 1869. It is listed at Category A.
Families in Perth usually pick a time after school, on a weekday evening or at the weekend, agreed in the free lesson. For our teachers in India the lesson falls late in the evening: they are four and a half hours ahead of Scotland in summer and five and a half in winter.
No. We have no Perth centre and no premises anywhere in the UK, since every lesson is live online. Learners need a computer with sound and a reliable connection, and our phone number is Indian.
The first lesson is free. After that, a group place costs USD 100 a month for two live lessons a week, about eight a month, with five to ten learners, and one-to-one teaching on the same timetable costs USD 150 a month. Nothing is charged until the course, format and time are agreed.
By level, pace and goals rather than by age or where they live, with five to ten learners at the same stage. When no group suits the learner's week, we offer one-to-one lessons.
Down the Tay, the Dundee page tests weather forecasts against plain baselines, and in Fife Dunfermline mends Carnegie's autobiography with a Hamming code. For exam years there are dedicated pages for National 5 and Higher Computing Science; how our stages sit alongside the Curriculum for Excellence is explained in the Scotland guide, and the UK coding page leads to every other city.