---
title: "Best Coding Classes in Cardiff | Modern Age Coders"
description: "Live online coding, Python, AI and maths classes for Cardiff learners aged 6 to 67, from Canton and Roath to Cathays and Llanishen. The first lesson is free."
canonical: https://learn.modernagecoders.com/best-coding-class-in-cardiff
source: src/pages/best-coding-class-in-cardiff.html
---
> Live online coding, Python, AI and maths classes for Cardiff learners aged 6 to 67, from Canton and Roath to Cathays and Llanishen. The first lesson is free.

Skip to contentCourse picks for Cardiff

## Four courses for the Welsh capital

Follow the learner's interests. The opening lesson of any course is free, live and booked without card details.

[![Problem Solving and Computational Thinking for Kids course thumbnail](/images/problem-solving-kids.webp)Ages 7 to 12Problem Solving and Computational Thinking for KidsLogic, patterns and first programs, where ordering towns by size and spotting a rule is a natural early puzzle.See the syllabus](/courses/problem-solving-and-computational-thinking-for-kids)[![Maths Through Coding course thumbnail](/images/maths-through-coding.webp)Ages 10 to 15Maths Through CodingAlgebra, graphs and probability built in Python, the tools for plotting a pattern and testing whether it holds.See the syllabus](/courses/maths-through-coding)[![Data Science for Teens course thumbnail](/images/data-science-teens.webp)Ages 14 to 18Data Science for TeensPandas, real datasets and honest charts for teenagers who know basic Python, a natural home for a 579-row census table.See the syllabus](/courses/data-science-course-for-teens-python-data)[![Maths for Data Science course thumbnail](/images/data-analytics-maths.webp)University and adultMaths for Data ScienceStatistics, regression and the mathematics of data for adults, including the log scales that power laws need.See the syllabus](/courses/data-analytics-mathematics-masterclass)

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)Cardiff today

## A capital full of students and young adults

From the 2021 Census tables for the Cardiff local authority, published by the Office for National Statistics on Nomis.

| Census 2021 measure | Cardiff | Wales |
| --- | --- | --- |
| Usual residents | 362,308 | Not compared |
| In households | 346,893, 95.7% | Not compared |
| In communal establishments | 15,415, 4.3% | Not compared |
| Aged 5 to 9 | 21,504, 5.9% | 5.7% |
| Aged 20 to 24 | 37,885, 10.5% | 6.0% |
| Aged 25 to 29 | 29,300, 8.1% | 6.0% |
| Schoolchildren and full-time students, of 343,239 aged five and over | 94,734, 27.6% | 19.9% |

### Young adults

Residents aged 20 to 24 made up 10.5% of Cardiff and those aged 25 to 29 another 8.1%, against 6.0% each across Wales.

### In education

Schoolchildren and full-time students were 27.6% of Cardiff residents aged five and over in 2021, well above the Welsh figure of 19.9%.

### Children in step

Children aged 5 to 9 were 5.9% of residents, close to Wales's 5.7%, so the capital is a family city as well as a student one.

Note that the council area and the built-up area are different shapes: the local authority counted 362,308 people, while the ONS built-up area called Cardiff, drawn around continuous development, counted 348,535. Both are right, for different boundaries. Learners here span every stage, from a Year 3 pupil in Roath building a first game to a Year 11 student in Llanishen preparing for WJEC GCSE Computer Science, or an adult in Cathays learning data skills.

A university and a museum

## From 102 students to a Russell Group university

From Cardiff University and Amgueddfa Cymru, National Museum Wales.

### 24 October 1883

Cardiff University says it opened its doors that day as the University College of South Wales and Monmouthshire, receiving its Royal Charter the following year.

### 102 students

At the start there were, the University says, 13 academic staff, 12 departments, 102 full-time degree students and 49 part-time students.

### 31,505 today

The University now reports 31,505 students from 142 countries and is a member of the Russell Group of research-intensive universities.

In 1893 the college became one of the founding institutions of the University of Wales, and it took the name University College, Cardiff, by 1972. In Cathays Park, Amgueddfa Cymru runs National Museum Cardiff, where admission is free with a booked ticket. We have no connection with either. We mention them because a capital city collects institutions, people and activity faster than its neighbours, which is exactly the effect the project on this page tries to measure.

What a built-up area is

The ONS draws built-up areas from satellite imagery around continuous development, so they follow the towns themselves rather than council boundaries. For Census 2021 it published a population for each of Wales's 579 built-up areas, rounded to the nearest 5 to protect confidentiality, and grouped them into five size classes.

Signature project

## Is Cardiff as big as it should be?

Zipf's rank-size rule says the town at rank r should have about 1/r of the largest town's population. We tested it on every built-up area in Wales.

| Rank | Built-up area | Census 2021 | Zipf prediction |
| --- | --- | --- | --- |
| 1 | Cardiff | 348,535 | Starting point |
| 2 | Swansea | 170,085 | 174,268 |
| 3 | Newport | 130,890 | 116,178 |
| 4 | Barry | 56,605 | 87,134 |
| 5 | Bridgend | 51,760 | 69,707 |
| 10 | Merthyr Tydfil | 39,535 | 34,854 |

### 1. Rank the towns

Sort all 579 built-up areas by population, largest first, and give each its rank. Cardiff is rank 1 and Llandarcy, with 115 residents, rank 579.

### 2. Plot on log scales

Plot the logarithm of population against the logarithm of rank. A pure Zipf pattern gives a straight line with a slope of exactly minus one.

### 3. Fit and compare

Fit the line over different ranges. The ten largest give a slope of minus 0.999; the 54 places of 10,000 or more give minus 0.809.

### A capital bigger than the pattern

The line fitted to the 54 places of 10,000 or more predicts a largest town of about 246,650. Cardiff's built-up area has 348,535, well above the line, which is what geographers call a primate city: a capital that draws in more people than its rank alone would suggest. Swansea sits almost exactly where Zipf predicts; Barry and Bridgend fall well below, squeezed perhaps by being so close to Cardiff.

The answer depends heavily on the range. Fit all 579 places and the slope steepens to minus 1.259, because the smallest villages fall away faster than the rule allows. Fit only the top ten and it is almost perfect. A power law is only ever claimed over a range, and a learner who reports a slope without its range, or who fits the range that gives the answer they wanted, has not really tested anything.

Testing a power law

## Five checks before claiming a pattern holds

Learned on Welsh towns, used afterwards on word frequencies, website traffic, earthquake sizes, city populations everywhere and any ranked list that seems to follow a rule.

| Check | What it looks like | What it prevents |
| --- | --- | --- |
| Define the units | Say whether you rank built-up areas, council areas or something else | Mixing boundaries that measure different things |
| Plot on log scales | Look at log population against log rank before fitting anything | Missing a curve that a straight-line claim hides |
| Report the range | Give the slope with the ranks it was fitted over | A pattern that only holds for the places you chose |
| Look at the outliers | Name the places that sit far above or below the line | Averaging away the most interesting cases |
| Respect the rounding | Remember counts are rounded to the nearest 5, which matters for tiny villages | False precision at the bottom of the list |

The first check matters in Cardiff more than most places. The council area and the built-up area give different populations, and ranking council areas instead would produce a different list and a different slope. Neither is wrong, but a rule claimed for one does not automatically hold for the other.

### Younger learners

Lining up towns by size with coloured bars and noticing that each step down the list is smaller than the last.

### Teenagers

The ONS workbook read in Python, the towns ranked, log-log fits made over several ranges, and the outliers explained.

### Adults

Power-law claims at work, from customer sizes to web traffic, tested over stated ranges before anyone relies on them.

We are not connected with the Office for National Statistics, Cardiff University or Amgueddfa Cymru. The census figures are published for public use; the rankings, predictions and fitted slopes are our own calculations.

Learning ladder

## From a bar chart of towns to a power law

The ages are a starting guide; the free lesson settles the real level.

Ages 6 to 10

### Biggest to smallest

Ordering towns and objects by size, drawing bar charts and describing how quickly the bars shrink.

[Elementary Maths for Grades 1-5](/courses/elementary-mathematics-complete-masterclass)[Problem Solving and Computational Thinking for Kids](/courses/problem-solving-and-computational-thinking-for-kids)Ages 11 to 13

### Patterns and fractions

Halves, thirds and quarters of a number, sorting in code and testing whether a list follows a simple rule.

[Maths Through Coding](/courses/maths-through-coding)[Middle School Mathematics Mastery](/courses/comprehensive-middle-school-mathematics-mastery)Ages 14 to 18

### Power laws in Python

Real census data ranked, logarithms and log-log fits applied, and the range of a law tested honestly.

[Data Science for Teens](/courses/data-science-course-for-teens-python-data)[High School Mathematics](/courses/complete-high-school-mathematics-mastery)Ages 18 to 67

### Patterns in data at work

Regression, log scales and outlier analysis for adults who need to know whether a pattern is real.

[Maths for Data Science](/courses/data-analytics-mathematics-masterclass)[Data Analysis Course](/courses/data-analysis-mastery-course-college)Coding and AI

## An assistant can tell you Cardiff is the biggest town in Wales. Why should a Cardiff teenager test Zipf's law?

Because a ranked list hides a pattern, and the pattern hides its limits.

Ask an AI tool whether Welsh towns follow Zipf's law and it may say yes with confidence, or no, depending on how the question is framed. The honest answer is both: almost perfectly for the ten largest places, much less so across all 579, with Cardiff bigger than the pattern predicts. A learner who has fitted the line over several ranges knows that a power law without its range is a slogan, not a finding.

Zipf's law also sits close to the heart of modern AI. Word frequencies in any language follow it, which shapes how language models are trained and why rare words are hard for them; website traffic, file sizes and many network patterns follow similar power laws. Understanding the rank-size rule on real towns is a direct route to understanding those systems.

Which is why programming is still worth a Cardiff teenager's time in 2026, in a capital that has outgrown its neighbours: patterns are easy to claim and hard to test, and knowing the difference is what programming with data teaches. The longer argument is in [is learning to code still worthwhile in 2026](/blog/is-coding-worth-learning-2026).

Delivery

## Canton, Roath or Llanishen, from your own desk

Cardiff is compact, but a live online lesson still saves the trip across town.

### Bay to the northern suburbs

A learner in Butetown and another in Rhiwbina can share a lesson without either crossing the city.

### Welsh school years

Years 1 to 13, the Curriculum for Wales and WJEC GCSEs and A levels, named as Cardiff schools name them. Lessons are taught in English.

### A free lesson that counts

The first lesson teaches something real and ends with a recommended level, course and weekly time. No card is needed.

### Grouped by level

Every group holds five to ten learners at the same stage, gathered from Cardiff, other parts of Britain and further afield, so each level can meet at a sensible hour.

### Twice a week, set times

The rhythm is two fixed lessons weekly, roughly eight in a month, and any holiday or exam pause is planned with the teacher before it begins.

### Teachers in India

India keeps the same clock all year. Cardiff is four and a half hours behind it in British Summer Time and five and a half behind in winter, which places after-school and evening slots inside the teaching day.

Across South Wales

Families in Penarth, Caerphilly or Newport join exactly the same groups, because every lesson is online and groups are formed by level rather than postcode.

Fees

## Cardiff lesson fees

One free lesson, then a single monthly fee.

First class**USD 0**

A full lesson at no charge, ending with a level, a suggested course and a proposed weekly time.

Group tuition**USD 100**

About eight live lessons a month in a group of five to ten learners at one level.

Private tuition**USD 150**

About eight live lessons a month with a teacher who works with your learner alone.

Families outside India all pay one US dollar fee, so Pontcanna and Splott pay exactly the same, and we publish no prices in pounds. No invoice arrives before the free lesson has settled which course and which weekly slot suit, and our pricing page explains how pausing, missed lessons and a switch between group and private teaching are handled.

Request placement[Check availability](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20please%20could%20we%20book%20a%20free%20coding%20lesson%20for%20a%20learner%20in%20Cardiff%3F)Reviews

## Six Google reviews from our families, as they wrote them

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

We choose the first task by level: a bar chart of towns for a young child, a first Python program that sorts a list, or the ONS table of 579 Welsh built-up areas and a Zipf test for a teenager ready for real data.

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

[WhatsApp Modern Age Coders](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20please%20could%20we%20book%20a%20free%20coding%20lesson%20for%20a%20learner%20in%20Cardiff%3F)

Submitted details are used for placement and follow-up.

FAQ

## Cardiff coding class questions

What Cardiff families ask us most often.

### How many people live in Cardiff?

The 2021 Census counted 362,308 usual residents in the Cardiff local authority: 346,893 in households and 15,415, or 4.3%, in communal establishments. The ONS built-up area called Cardiff, a different boundary, had 348,535.

### How many Cardiff residents are students?

In 2021, 94,734 of the 343,239 residents aged five and over were schoolchildren or full-time students, 27.6% against 19.9% across Wales. Cardiff University reports 31,505 students.

### What is Zipf's law?

A pattern in which the item at rank r in a list is about 1/r the size of the largest. It appears in word frequencies, city sizes and many other ranked lists, usually over a limited range.

### Do Welsh towns follow Zipf's law?

For the ten largest built-up areas, almost exactly: the fitted slope is minus 0.999. Across all 579 it is steeper, and Cardiff is larger than the line through the bigger towns predicts.

### When did Cardiff University open?

On 24 October 1883, as the University College of South Wales and Monmouthshire, according to the University, with 102 full-time degree students. We are not connected with the University.

### Do lessons follow the Curriculum for Wales?

We use Welsh school years and WJEC course names, and support learners working towards WJEC GCSE Computer Science and Digital Technology; our WJEC pages explain each course. Lessons are taught in English.

### When are Cardiff lessons held?

On weekday afternoons and evenings or at weekends, at a UK time agreed in the free lesson; India runs 4.5 hours ahead of Cardiff in summer and 5.5 hours in winter.

### Is there a Modern Age Coders centre in Cardiff?

No. There is no Cardiff centre and no premises anywhere in the UK; all teaching is live online. Learners need a computer with sound and a steady connection, and our phone number is based in India.

### How much do Cardiff lessons cost?

The first lesson is free. After it, a group place is USD 100 a month for two live lessons a week, around eight a month, with five to ten learners, and one-to-one lessons on the same schedule are USD 150 a month. Course, format and time are agreed before any payment.

### How are Cardiff groups formed?

By level, pace and aims rather than age or postcode, with five to ten learners at one stage. If no group meets at a suitable time, we propose one-to-one lessons.

Explore Wales and the UK

## Welsh guides and nearby cities

The [Wales guide](/coding-and-ai-classes-in-wales) covers coding across the Curriculum for Wales, and exam help lives on the [WJEC GCSE Computer Science](/wjec-gcse-computer-science-help-wales) and [WJEC Digital Technology](/wjec-gcse-digital-technology-help-wales) pages. Across the Severn, [Bristol](/best-coding-class-in-bristol) splits its city into library catchments. Every UK page is linked from the [UK coding page](/coding-classes-in-united-kingdom).

Book the free class[Message us on WhatsApp](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20please%20could%20we%20book%20a%20free%20coding%20lesson%20for%20a%20learner%20in%20Cardiff%3F)Free Cardiff class[Call +91 91233 66161](tel:+919123366161)

## Keep exploring Modern Age Coders

### Coding classes in nearby cities

- [Best Coding Classes in Carlisle](/best-coding-class-in-carlisle)
- [Best Coding Classes in Canterbury](/best-coding-class-in-canterbury)
- [Best Coding Classes in Chelmsford](/best-coding-class-in-chelmsford)
- [Best Coding Classes in Cambridge](/best-coding-class-in-cambridge)
- [Best Coding Classes in Chester](/best-coding-class-in-chester)
- [Best Coding Classes in Chichester](/best-coding-class-in-chichester)
- [Best Coding Classes in Derry~Londonderry](/best-coding-class-in-derry-londonderry)
- [Best Coding Classes in Lincoln](/best-coding-class-in-lincoln)
- [Best Coding Classes in Lisburn](/best-coding-class-in-lisburn)
- [Best Coding Class in Longford Town](/best-coding-class-in-longford)

### Learn more

- [Coding Classes for Teens in the Netherlands](/coding-classes-for-teens-netherlands)
- [Coding Classes for Kids in the Netherlands](/coding-classes-for-kids-netherlands)
- [Machine Learning for School Students, Netherlands](/machine-learning-for-school-students-netherlands)
- [Data Science Course in the Netherlands](/data-science-course-netherlands)

### Free resources

- [AI & Machine Learning Tutorial: Basics to Deep Learning](/resources/ai-and-machine-learning)
- [Arrays in Java](/resources/java/arrays-in-java)
- [Dimensionality Reduction](/resources/ai-and-machine-learning/dimensionality-reduction)
- [Inheritance in Java](/resources/java/inheritance-in-java)

### From the blog

- [Scratch vs Python for Kids: The Difference and Which First](/blog/scratch-vs-python-which-better-young-learners)
- [Learn Python Step by Step: The Free Tutorial Library](/blog/learn-python-step-by-step)
- [Learn Python for Beginners: Complete Step-by-Step Guide (2026)](/blog/python-for-beginners)

### Start here

- [Browse every live course at Modern Age Coders](/courses)
- [Try a free trial class with a Modern Age Coders mentor](/free-trial)

---

*Canonical: https://learn.modernagecoders.com/best-coding-class-in-cardiff*
