Skip to content
Cardiff, Wales

Coding classes in Cardiff

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.

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

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.

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.

Cardiff, Census 2021
Census 2021 measureCardiffWales
Usual residents362,308Not compared
In households346,893, 95.7%Not compared
In communal establishments15,415, 4.3%Not compared
Aged 5 to 921,504, 5.9%5.7%
Aged 20 to 2437,885, 10.5%6.0%
Aged 25 to 2929,300, 8.1%6.0%
Schoolchildren and full-time students, of 343,239 aged five and over94,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.

Largest built-up areas in Wales, Census 2021, against the Zipf prediction from Cardiff
RankBuilt-up areaCensus 2021Zipf prediction
1Cardiff348,535Starting point
2Swansea170,085174,268
3Newport130,890116,178
4Barry56,60587,134
5Bridgend51,76069,707
10Merthyr Tydfil39,53534,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.

Testing a rank-size rule honestly
CheckWhat it looks likeWhat it prevents
Define the unitsSay whether you rank built-up areas, council areas or something elseMixing boundaries that measure different things
Plot on log scalesLook at log population against log rank before fitting anythingMissing a curve that a straight-line claim hides
Report the rangeGive the slope with the ranks it was fitted overA pattern that only holds for the places you chose
Look at the outliersName the places that sit far above or below the lineAveraging away the most interesting cases
Respect the roundingRemember counts are rounded to the nearest 5, which matters for tiny villagesFalse 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-5Problem 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 CodingMiddle 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 TeensHigh School Mathematics
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 ScienceData Analysis Course
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.

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

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

Group tuitionUSD 100

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

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

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.

+44

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

Free Cardiff classCall +91 91233 66161

Keep exploring Modern Age Coders

Coding classes in nearby cities

Learn more

Free resources

From the blog

Start here