Skip to content
Perth, Scotland

Coding classes in Perth, Scotland

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.

Course picks for Perth

Four courses for the city on the Tay

Match the course to whatever the learner is already keen on. All four open with a free live lesson, booked without a card.

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.

Perth today

A city at the centre of a wide council area

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

Perth and Kinross beside Scotland: census counts for 2011, and rounded counts for 2022
Council area or countryResidents counted in 2011Residents in 2022, roundedResidents to each square kilometre, 2022
Perth and Kinross146,652150,80028.5
Scotland5,295,4035,436,60069.8

More households

The council area had around 70,000 households with at least one usual resident in 2022, compared with 64,777 counted in 2011.

An older profile

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

Space between places

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.

Kirk, bridge and novel

A medieval kirk, Smeaton's bridge and Scott's Perth

From Historic Environment Scotland's listing records, and from the text of Walter Scott's novel as published by Project Gutenberg.

By 1448

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.

1766 to 1771

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.

The North Inch

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.

Signature project

Can Soundex find the names in The Fair Maid of Perth?

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.

Some Soundex codes shared by more than one name-like word in The Fair Maid of Perth, with the number of times each appears
CodeWords that share itWhat the match really is
J523Johnston 13, Johnstone 6The same name spelt two ways
C365Catharine 357, Catherine 1The same name spelt two ways
D552Dwining 107, Dominican 19, Dominic 5A character and an order of friars
J500John 147, Joan 3Two different names
C623Craigdallie 35, Christian 23A surname and a word of faith
L535London 4, Lundin 3A city and a surname

1. Build and test

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.

2. Find the names

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.

3. Group by sound

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.

Right, wrong and missed

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.

Fuzzy matching

Five checks before trusting a name match

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.

Decisions behind the Soundex study
QuestionFor The Fair Maid of PerthWhat goes wrong if you skip it
Does the code follow the specification?All seven National Archives examples reproducedA matcher that is subtly wrong from the start
What counts as a name?Capitalised, never lower case, three or more usesOrdinary words swamping the groups
Which matches are real?Every shared code read by a personJohn and Joan merged into one record
What can it never find?Names with different first lettersMissed matches nobody knows about
Where are the rules unclear?The Y rule written down as an assumptionTwo 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.

Younger learners

Inventing a secret code for names, then finding two classmates whose names come out the same.

Teenagers

String handling, rule-based algorithms and error counting in Python, on a 185,409-word novel.

Adults

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.

Learning ladder

From secret codes to fuzzy matching

Treat the ages as a starting guess; the free lesson settles the real level.

Ages 6 to 10

Codes for names

Turning names into codes with simple rules in block code, and spotting when two names clash.

Scratch Coding for KidsCoding for Kids
Ages 11 to 13

Text in Python

Strings, loops and dictionaries in Python, counting words and grouping them by a rule.

Python and AI for KidsMaths Through Coding
Ages 14 to 18

Algorithms from specifications

Soundex built from its official rules, tested on examples, then measured on a real novel.

Python for TeensProblem Solving for Teens
Ages 18 to 67

Records at work

Matching and cleaning names and addresses, with false matches and misses counted rather than hidden.

Python MasterclassData Analysis Course
Coding and AI

AI can guess that two names are the same. Why should a Perth teenager learn Soundex?

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

Delivery

Kinnoull, Cherrybank or Scone, and the same class

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.

Both banks of the Tay

A learner in Muirton and another in Kinfauns can sit in the same class without either crossing the river.

In step with Scottish schools

Placement follows the Scottish stages, primary to S6 with National 5, Higher and Advanced Higher along the way; lessons themselves are in English.

The opening lesson

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.

Level, not age

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.

A twice-weekly rhythm

Two set lessons every week, about eight a month, with holidays and exam study worked out with the teacher ahead of time.

Late evenings in India

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.

Fees

Perth lesson fees

No charge for the first lesson, and a single monthly fee after that.

First classUSD 0

A full lesson free of charge, closing with a recommended level, course and weekly time.

Group tuitionUSD 100

Roughly eight live lessons a month, in a class of five to ten learners at the same stage.

Private tuitionUSD 150

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.

Reviews

Six Google reviews from families, copied exactly

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 lesson for a Perth learner

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.

+44

FAQ

Perth coding class questions

The questions Perth families most often ask.

How many people live in Perth and Kinross?

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.

How does Perth and Kinross compare with Scotland?

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.

What is Soundex?

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.

How well does Soundex work on The Fair Maid of Perth?

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.

Where do the rules and the text come from?

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.

Who built Perth Bridge?

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.

When are Perth lessons?

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.

Is there a centre in Perth?

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.

What do Perth lessons cost?

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.

How are learners grouped?

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.

Explore Scotland and the UK

Scotland and beyond

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.

Free Perth classCall +91 91233 66161

Keep exploring Modern Age Coders

Coding classes in nearby cities

Free resources

From the blog

Start here