---
title: "Best Coding Classes in Perth, Scotland | Modern Age Coders"
description: "Live online coding, Python, AI and maths lessons for Perth learners aged 6 to 67, from Kinnoull and Craigie to Letham and Scone. The first lesson is free of charge."
canonical: https://learn.modernagecoders.com/best-coding-class-in-perth-scotland
source: src/pages/best-coding-class-in-perth-scotland.html
---
> Live online coding, Python, AI and maths lessons for Perth learners aged 6 to 67, from Kinnoull and Craigie to Letham and Scone. The first lesson is free of charge.

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

[![Scratch Coding for Kids course thumbnail](/images/scratch-kids.webp)Ages 6 to 12Scratch Coding for KidsBlock programming for younger children, from word games to a secret-code machine that turns names into numbers.See the syllabus](/courses/scratch-programming-complete-course)[![Python and AI for Kids course thumbnail](/images/python-kids.webp)Ages 10 to 13Python and AI for KidsFirst Python with strings and lists, enough to split a book into words and count the ones that begin with a capital.See the syllabus](/courses/python-ai-kids-masterclass)[![Python for Teens course thumbnail](/images/python-teens.webp)Ages 13 to 18Python for TeensPython from first lines to full projects, enough to build Soundex from its official rules and run it over a whole novel.See the syllabus](/courses/python-complete-masterclass-teens)[![Python Masterclass course thumbnail](/images/python-college.webp)University and adultPython MasterclassPython for adults who match names, addresses or records that are spelt differently in different places.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)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.

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

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

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

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

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

### 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 Kids](/courses/scratch-programming-complete-course)[Coding for Kids](/courses/kids-coding-blocks-masterclass)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 Kids](/courses/python-ai-kids-masterclass)[Maths Through Coding](/courses/maths-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 Teens](/courses/python-complete-masterclass-teens)[Problem Solving for Teens](/courses/problem-solving-dsa-masterclass-teens)Ages 18 to 67

### Records at work

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

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

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

Group tuition**USD 100**

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

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

Request placement[Check availability](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20I%20would%20like%20a%20free%20coding%20lesson%20for%20a%20learner%20in%20Perth%2C%20Scotland.)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.

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

[WhatsApp Modern Age Coders](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20I%20would%20like%20a%20free%20coding%20lesson%20for%20a%20learner%20in%20Perth%2C%20Scotland.)

Submitted details are used for placement and follow-up.

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](/best-coding-class-in-dundee) tests weather forecasts against plain baselines, and in Fife [Dunfermline](/best-coding-class-in-dunfermline) mends Carnegie's autobiography with a Hamming code. For exam years there are dedicated pages for [National 5](/national-5-computing-science-help) and [Higher Computing Science](/higher-computing-science-help); how our stages sit alongside the Curriculum for Excellence is explained in the [Scotland guide](/coding-and-ai-classes-in-scotland), and the [UK coding page](/coding-classes-in-united-kingdom) leads to every other city.

Book the free class[Message us on WhatsApp](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20I%20would%20like%20a%20free%20coding%20lesson%20for%20a%20learner%20in%20Perth%2C%20Scotland.)Free Perth class[Call +91 91233 66161](tel:+919123366161)

## Keep exploring Modern Age Coders

### Coding classes in nearby cities

- [Best Coding Classes in Peterborough](/best-coding-class-in-peterborough)
- [Best Coding Classes in Oxford](/best-coding-class-in-oxford)
- [Best Coding Classes in Plymouth](/best-coding-class-in-plymouth)
- [Best Coding Classes in Nottingham](/best-coding-class-in-nottingham)
- [Best Coding Classes in Portsmouth](/best-coding-class-in-portsmouth)
- [Best Coding Classes in Norwich](/best-coding-class-in-norwich)
- [Best Coding Classes in Southampton](/best-coding-class-in-southampton)
- [Best Coding Classes in St Davids](/best-coding-class-in-st-davids)
- [Best Coding Classes in Southend-on-Sea](/best-coding-class-in-southend-on-sea)
- [Best Coding Class in Castlebar](/best-coding-class-in-castlebar)

### Free resources

- [AI & Machine Learning Tutorial: Basics to Deep Learning](/resources/ai-and-machine-learning)
- [Reinforcement Learning Basics](/resources/ai-and-machine-learning/reinforcement-learning-basics)
- [AI Ethics, Responsible AI, and Career Roadmap](/resources/ai-and-machine-learning/ai-ethics-and-career-guide)
- [Introduction to Design Patterns](/resources/java/design-patterns-introduction)

### From the blog

- [Learn Python Step by Step: The Free Tutorial Library](/blog/learn-python-step-by-step)
- [Python Lambda Functions: When to Use Them, 10 Examples](/blog/python-lambda-functions)
- [Why Is My Child Struggling with Maths? The Real Reasons](/blog/why-is-my-child-struggling-with-maths)

### 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/best-coding-class-in-perth-scotland*
