Where can Penarth families find the best coding and AI classes?
The ONS gives the Penarth built-up area 28,395 usual residents in the 2021 census; the Vale of Glamorgan as a whole had 131,939. Cogan, Lower Penarth and Cosmeston fall inside the built-up area, and its postcodes sit in the St Augustine's, Plymouth, Cornerswell, Stanwell and Llandough wards. Penarth learners between six and 67 study coding, AI, Python, vibe coding and maths with us over live video; tutors in India take them one at a time or in level-matched groups of five to ten. A free trial lesson comes first, then a course suggestion. The Penarth project takes 48 years of temperature records from the Met Office station in Bute Park, Cardiff, and asks for the longest chain of years in which each was warmer than the one before, a question whose obvious solution would take years to run. After the free lesson, joining a group costs USD 100 per month; a personal tutor costs USD 150 per month.
Some questions sound tiny and hide an enormous search. Here is one: in a list of 48 yearly temperatures, which years can you pick, keeping them in order, so that each is warmer than the last, and how long can that chain get? Checking every possible selection means looking at more than 281 trillion of them. A cleverer method needs 1,128 comparisons, and a cleverer one still, borrowed from a card game called patience, needs 141. Penarth learners write all three and time them.
Facts last verified 1 October 2026. Teaching is online; no Penarth branch is claimed.
Choose by age. Every course starts with a live lesson that is free and asks for no card.

Card games, chains and patterns that turn into algorithms later.
See the syllabus
A Scratch game made by describing it to an AI, then testing and repairing it.
See the syllabus
Algorithms and data structures in Python, including the Bute Park chain project.
See the syllabus
Python from the beginning to efficient algorithms and data work.
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 syllabusHeadline census counts and the areas the Penarth built-up area covers.
| Area | Usual residents |
|---|---|
| Penarth built-up area | 28,395 |
| Vale of Glamorgan | 131,939 |
The Vale also contains Barry, Llantwit Major and many villages, and the Penarth built-up area itself crosses slightly into Cardiff, so the two rows are separate counts and should not be compared as town and total. On postcodes.io, Cogan, Lower Penarth and Cosmeston are suburban areas whose nearest postcode is inside the built-up area, and the CF64 postcodes in it belong to five wards: St Augustine's, Plymouth, Cornerswell, Stanwell and Llandough. Sully and Dinas Powys have built-up areas of their own and are not counted here. Pupils in Penarth learn under the Curriculum for Wales and later sit WJEC papers; we teach through English, and a Welsh year group is simply where the trial lesson begins its checking.
See Cardiff, Barry, the Vale of Glamorgan and WJEC GCSE Computer Science help. Our argument for learning to solve problems, not just call tools, is in problem-solving skills through coding.
Forty-eight years of Bute Park temperatures, one question, and three algorithms that differ by trillions of steps.
The Met Office publishes monthly records for its historic station in Bute Park, Cardiff, about 6 km north of Penarth's town centre, going back to September 1977. The learner takes the average daily maximum temperature for each month, keeps the 48 complete calendar years from 1978 to 2025, and averages the twelve months of each year. The coolest year by this measure was 1979 at 13.03 °C and the warmest 2022 at 16.36 °C. A few dozen monthly values are marked by the Met Office as estimated, and the page treats the averages as our own calculation, not an official statistic.
The question is the longest increasing subsequence: pick years in time order, skipping as many as you like, so that each picked year is warmer than the one picked before it. The longest run of years rising one after another without a gap is only 5, from 1986 to 1990. Allow gaps and the chain gets far longer. The learner finds a chain of 16: 1979, 1985, 1987, 1991, 1992, 1994, 1998, 2000, 2002, 2004, 2005, 2006, 2014, 2020, 2023 and 2025, each warmer than the last.
| Method | Work needed | Practical? |
|---|---|---|
| Check every possible selection of years | 2^48 selections, over 281 trillion | No: about seven years at our measured speed |
| Dynamic programming (longest chain ending at each year) | 1,128 comparisons | Yes |
| Patience sorting with binary search | 141 comparisons | Yes |
Brute force really is hopeless. The learner times it on the first 20 years, which already means 1,048,575 selections and 0.8 seconds on our laptop; each extra year doubles the work, so all 48 years would take roughly seven years of computing. Dynamic programming works year by year, asking for each one: what is the longest chain that ends here? Patience sorting deals the temperatures into piles like the card game, always placing a card on the leftmost pile whose top card is warmer, and the number of piles at the end is the answer. Dynamic programming and patience sorting both give 16, and on the first 12, 16 and 20 years, where brute force can finish, all three agree.
Is 16 a lot? The learner shuffles the 48 values into random order 10,000 times and finds the longest chain in each. Shuffled years give chains of 10.9 on average, and only 10 of the 10,000 shuffles reached 16. So the real order of the years produces a much longer rising chain than chance usually does. The project stops at that statement. It does not try to explain why, which would need far more than one weather station and one algorithm.
Play patience with a shuffled pack of numbered cards and count the piles: that is the longest rising chain.
Load the Bute Park file in Python, average each year and find the longest unbroken rise.
Write brute force, dynamic programming and patience sorting, count their steps and run the shuffle test.
Temperatures are Met Office historic station data for Cardiff Bute Park, published under the Open Government Licence; 2026 values are provisional and some months are estimated. The yearly averages, the three algorithms, the timings and the 10,000 shuffles (seed 20261001) come from our own run. We make no claim about the causes of any change in the record.
The difference between an answer in a blink and an answer in seven years is the algorithm.
| What the project showed | Why it matters when AI writes code |
|---|---|
| Brute force was correct but hopeless | Working code can still be useless at full size |
| Dynamic programming cut the work to 1,128 steps | Ask how the work grows, not just whether it runs |
| Patience sorting needed only 141 | A known better algorithm is worth looking for |
| All three agreed where they could be compared | Check a fast method against a slow, sure one |
| The shuffle test gave the 16 meaning | A number needs a comparison before it means much |
Ask an AI to "find the longest rising run of years" and you may get the consecutive version, the brute force, or the clever one, and they give different answers or different running times. Telling them apart needs exactly what this project practises: a small test where you know the answer, and a count of how the work grows. That is how we approach vibe coding. Agents of their own come once a learner writes Python without leaning on the tutor, for most from Year 12; Copilot Studio is offered in private lessons and nowhere else. Further reading: learn to think, not just use AI tools.
We have no tie to the Met Office, the ONS or postcodes.io beyond using their published open data; every calculation here is ours.
The Welsh school year gives a first guess, and the trial lesson corrects it.
Card games, ordering and spotting rules, often before any screen time.
Problem Solving and Computational Thinking for KidsScratch Coding for KidsScratch projects built with an AI helper, then a move into Python.
Vibe Coding for KidsPython and AI for KidsSearching, sorting and dynamic programming, with steps counted and compared.
Problem Solving for TeensPython for TeensPython for work, with the algorithm choices that keep programs fast.
Python MasterclassData Structures & Algorithms CourseThe longest increasing subsequence of a list is the longest selection of its items, kept in their original order but not necessarily next to each other, in which every item is larger than the one before, and the method matters because checking every selection grows exponentially while patience sorting finds the answer in a number of steps close to the length of the list.
For 48 years of Bute Park temperatures the longest such chain was 16 years, found with 141 comparisons by patience sorting and 1,128 by dynamic programming, where checking every selection would have needed more than 281 trillion.
Learners who see that gap ask an AI not only for an answer but for how its method grows.
For a teenager in Penarth, knowing why one algorithm finishes and another never will lets them judge AI-written code instead of trusting it, and that judgement is learned by writing algorithms. The longer argument is in why algorithms are still worth learning in 2026.
Each lesson is a live video call. Bring a laptop or desktop with a keyboard; Python on a tablet alone is too limited.
Each line is typed and run by the learner, with the tutor asking for reasons.
The trial lesson shows a learner's level before we name a course.
There is no charge and no card for the trial.
Learners at one level, joining from around the UK.
About eight lessons a month in term, with Vale of Glamorgan holidays kept free on request.
Clock changes do not move your lesson.
Why we teach online
Finding five to ten learners at exactly one level is far easier across the UK than in one town by the sea, and video means no travelling.
Penarth learners pay the same as all learners outside India.
First lesson: free and full length, closing with a course recommendation.
Group class, around eight lessons a month.
Private lessons, around eight a month.
Fees are charged in US dollars, and we publish no figure in pounds. The trial is free, and billing starts once you have agreed a course and a regular slot. The pricing page explains holidays, missed lessons and changing between group and private.
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
Let us know the learner's age or year group and their interests. Possible first sessions: a round of patience with numbered cards, an AI-assisted Scratch game, a few lines of Python, or the Bute Park temperature chain.
Questions about the warm-years chain, algorithms in general, vibe coding and lesson logistics.
The ONS counted 28,395 usual residents in the Penarth built-up area at the 2021 census. The Vale of Glamorgan had 131,939.
Yes. Live online lessons are open to ages 6 to 67 in Penarth, Cogan, Llandough, Stanwell and across the Vale of Glamorgan.
A way of dealing a sequence into piles, each card going on the leftmost pile whose top card is larger. The number of piles equals the length of the longest increasing subsequence.
Solving a big problem by solving smaller versions of it once each and reusing those answers, instead of recomputing them again and again.
In 48 years of Bute Park temperatures the longest chain of ever-warmer years was 16, and only 10 of 10,000 shuffled orders produced a chain that long.
Describing a program to an AI, then running, reading and fixing the code it writes. We teach it in typed Python so learners can tell a good method from a bad one.
Once they write Python confidently without help, usually in Year 12 or as adults. Copilot Studio agents are taught one-to-one only.
Efficiency and algorithm design feature heavily in WJEC computer science from GCSE upward, so lessons spend real time on them; grades are not promised.
There is no fee for the trial. A shared class is USD 100 monthly afterwards, and private teaching USD 150 monthly.
Yes. Send us the Vale of Glamorgan term dates and the holidays stay free.
Visit Cardiff, Roath, Barry and the Vale of Glamorgan. For anywhere else, try the Wales page or the UK hub.