What are the best coding classes in Cardiff?
Cardiff had 362,308 usual residents at the 2021 Census, and 27.6% of those aged five and over were schoolchildren or full-time students, against 19.9% across Wales. Cardiff University, which opened on 24 October 1883 with 102 full-time degree students, now counts 31,505. Learners across Cardiff, from six-year-olds to people of sixty-seven, study with Modern Age Coders live online, privately or in groups of five to ten placed by level, with India-based teachers working to a UK timetable. The first lesson costs nothing; afterwards a group place is USD 100 a month and private lessons USD 150 a month.
The Office for National Statistics counted the people in every built-up area of Wales in 2021: 579 of them, from Cardiff with 348,535 down to Llandarcy with 115. Put them in order of size and a curious pattern appears. Zipf's law, famous from word frequencies, says the second place should be about half the size of the first, the third a third, and so on. Swansea, in second place, has 170,085; the law predicts 174,268 from Cardiff's count, within 2.5%. Across the ten largest places, the fitted line on a log-log chart has a slope of minus 0.999, almost exactly Zipf's minus one. But fit the 54 places of 10,000 or more and the line predicts a capital of about 246,650, so Cardiff comes out bigger than the pattern expects. Why, and how much the answer depends on which towns you include, is the lesson Wales's towns give our teenage learners.
Facts last verified 21 September 2026. Teaching is online; no Cardiff branch is claimed.
Follow the learner's interests. The opening lesson of any course is free, live and booked without card details.

Logic, patterns and first programs, where ordering towns by size and spotting a rule is a natural early puzzle.
See the syllabus
Algebra, graphs and probability built in Python, the tools for plotting a pattern and testing whether it holds.
See the syllabus
Pandas, real datasets and honest charts for teenagers who know basic Python, a natural home for a 579-row census table.
See the syllabus
Statistics, regression and the mathematics of data for adults, including the log scales that power laws need.
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 syllabusFrom 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% |
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.
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 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.
From Cardiff University and Amgueddfa Cymru, National Museum Wales.
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.
At the start there were, the University says, 13 academic staff, 12 departments, 102 full-time degree students and 49 part-time students.
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.
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 |
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.
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.
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.
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.
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.
Lining up towns by size with coloured bars and noticing that each step down the list is smaller than the last.
The ONS workbook read in Python, the towns ranked, log-log fits made over several ranges, and the outliers explained.
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.
The ages are a starting guide; the free lesson settles the real level.
Ordering towns and objects by size, drawing bar charts and describing how quickly the bars shrink.
Elementary Maths for Grades 1-5Problem Solving and Computational Thinking for KidsHalves, thirds and quarters of a number, sorting in code and testing whether a list follows a simple rule.
Maths Through CodingMiddle School Mathematics MasteryReal census data ranked, logarithms and log-log fits applied, and the range of a law tested honestly.
Data Science for TeensHigh School MathematicsRegression, log scales and outlier analysis for adults who need to know whether a pattern is real.
Maths for Data ScienceData Analysis CourseBecause 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.
Cardiff is compact, but a live online lesson still saves the trip across town.
A learner in Butetown and another in Rhiwbina can share a lesson without either crossing the city.
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.
The first lesson teaches something real and ends with a recommended level, course and weekly time. No card is needed.
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.
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.
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.
One free lesson, then a single monthly fee.
A full lesson at no charge, ending with a level, a suggested course and a proposed weekly time.
About eight live lessons a month in a group of five to ten learners at one level.
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.
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 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.
What Cardiff families ask us most often.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
The Wales guide covers coding across the Curriculum for Wales, and exam help lives on the WJEC GCSE Computer Science and WJEC Digital Technology pages. Across the Severn, Bristol splits its city into library catchments. Every UK page is linked from the UK coding page.