What are the best coding classes in Gloucestershire?
Gloucestershire as a ceremonial county runs from the Forest of Dean to the Cotswolds and down to the edge of Bristol: seven councils and 935,500 people at the 2021 Census. Gloucester and Cheltenham are the two big towns, then Yate, Stroud, Bradley Stoke and Cirencester, with dozens of market towns and villages in the valleys. We teach every one of them in the same way. Every class happens live on a video call with a teacher based in India; skills, not birthdays, decide where a learner starts; anyone aged 6 to 67 can join; and a learner can be one of five to ten in a group or have a teacher all to themselves. Topics include programming, Python, cyber security, algorithms and maths. The Gloucestershire project begins in Cheltenham. Lesson one is free. Continuing costs USD 100 each month for group teaching or USD 150 each month for private teaching.
GCHQ has been in Cheltenham since the 1950s, and its headquarters, known as the Doughnut, has been home since 2003. Codes and keys depend on something that sounds simple and is not: random numbers that nobody can guess. Computers cannot flip coins, so they use formulas that produce numbers which look random. This page's project builds the oldest and simplest such formula, then plays the codebreaker. It finds that the numbers repeat, that some of their digits follow an obvious pattern, and that three outputs in a row are enough to predict every number that follows. The lesson is the same one professional codemakers learned long ago: looking random is not the same as being unpredictable.
Facts last verified 26 September 2026. Teaching is online; no Gloucestershire branch is claimed.
A seven-year-old in Tetbury who loves dice games, a Year 7 in Lydney writing a first Python program, a Year 10 in Cheltenham fascinated by codes, and a developer in Bradley Stoke who wants a deeper grip on algorithms. Each begins with a free lesson.

Scratch games with dice and random events, where children first meet a computer "picking" a number.
See the syllabus
Real Python for children, with the random module used and then questioned: where do those numbers come from?
See the syllabus
Defensive, ethical security, from paper ciphers to the HTTPS padlock, with instructor-built puzzles.
See the syllabus
Arrays to graphs to dynamic programming for adults, including cycle detection and the reasoning behind it.
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 syllabusEach council's 2021 Census total is from Nomis. Towns are the ONS built-up areas, and we counted census output areas ourselves to see which towns reach over the county line.
| Council | Usual residents | Main towns |
|---|---|---|
| South Gloucestershire | 290,424 | Yate, Bradley Stoke, Patchway, Thornbury, Filton, Kingswood |
| Gloucester | 132,416 | Gloucester |
| Stroud | 121,104 | Stroud, Stonehouse, Dursley, Cam, Nailsworth |
| Cheltenham | 118,836 | Cheltenham |
| Tewkesbury | 94,884 | Bishop's Cleeve, Tewkesbury, Churchdown |
| Cotswold | 90,832 | Cirencester, Tetbury, Moreton-in-Marsh |
| Forest of Dean | 87,004 | Lydney, Cinderford, Newent, Coleford |
South Gloucestershire, which has its own unitary council, holds almost a third of the county's people, most of them on the northern edge of Bristol. The Gloucestershire County Council area is a different place: two large towns, Gloucester and Cheltenham, whose built-up areas each spill into Tewkesbury district, and then valleys and wolds of small towns. A teenager in Cinderford and one in Moreton-in-Marsh live in the same county and a very long way apart.
| Town | Residents | Town | Residents |
|---|---|---|---|
| Kingswood and Fishponds | 160,270 | Brockworth | 12,005 |
| Gloucester | 118,555 | Filton | 10,960 |
| Cheltenham | 115,940 | Lydney | 9,660 |
| Yate | 28,350 | Cinderford | 8,775 |
| Stroud | 26,080 | Stonehouse | 8,300 |
| Bradley Stoke | 25,200 | Chipping Sodbury | 8,025 |
| Quedgeley and Hardwicke | 21,125 | Dursley | 7,935 |
| Cirencester | 17,715 | Cam | 7,730 |
| Patchway | 16,520 | Chalford | 6,660 |
| Bishop's Cleeve | 16,325 | Tetbury | 6,455 |
| Frampton Cotterell and Winterbourne | 14,970 | Nailsworth | 5,660 |
| Thornbury | 14,485 | Newent | 5,360 |
| Tewkesbury | 14,390 | Coleford | 5,020 |
| Churchdown | 13,480 | Moreton-in-Marsh | 5,010 |
| Stoke Gifford | 13,470 |
Every row agrees with our own output-area count to within rounding except the first. Kingswood and Fishponds is a built-up area of 160,270 that crosses from South Gloucestershire into the city of Bristol; about 114,700 of its residents are on the Gloucestershire side, and the table prints the ONS total for the whole place. Bristol itself, of which only a sliver reaches into South Gloucestershire, is left out. School calendars are set by the two councils and by academies; we did not read them, and the county's selective schools have a separate maths page.
The simplest pseudo-random formula, three tests of how random it really is, and an attack a fifteen-year-old can carry out.
A linear congruential generator is one line of code: take the last number, multiply it by a constant a, add another constant c, and keep the remainder after dividing by 65,536. The output jumps around convincingly. The learner starts with a = 25,173 and c = 13,849, which we picked, and runs three tests. The first asks how long before the numbers repeat. For that they use Floyd's method, a tortoise that moves one step and a hare that moves two, which finds the loop without storing a single earlier number.
| Constants | Numbers before repeating | Verdict |
|---|---|---|
| a = 25,173, c = 13,849 | 65,536, every possible value | The longest cycle possible at this size |
| a = 25,173, c = 13,848 (even) | 16,384 | A quarter of the values never appear |
| a = 25,172 (even multiplier) | Falls into a loop of length 1 | Useless: it gets stuck on one number |
| a = 4, c = 1 | Falls into a loop of length 1 | Useless for the same reason |
The second test looks at single bits. With the good constants, the lowest bit of the output goes 1, 0, 1, 0, 1, 0 for all twenty numbers we printed, and the next bit repeats every four. The numbers look random as a whole, but their last binary digit is as predictable as a ticking clock. Anyone who used that bit to decide a coin toss would lose every time to someone who knew.
The third test is the attack. Suppose you know the formula's shape and the 65,536, but not a or c. Watch three outputs in a row. The difference between the second and third must be a times the difference between the first and second, which pins down a; then c follows. In our run, exactly one pair of constants fits three observed numbers, and it predicts the next 17 outputs, 17 out of 17. A generator like this is fine for a dice game. For a password or a key, it is a disaster.
Write the one-line generator in Python, print its first twenty numbers, and write out each in binary to spot the last-digit pattern.
Implement Floyd's tortoise and hare, find the period for several choices of a and c, and explain which choices fail.
Recover a and c from three outputs by modular arithmetic, predict the rest, and read why real cryptography uses different generators.
This is a teaching generator with constants we chose, attacked in a way described in any cryptography textbook. It is not how GCHQ or any modern system generates keys, and nothing here is a technique for attacking real systems. The GCHQ facts come from GCHQ's own pages.
The Gloucestershire link, in GCHQ's own words.
| Topic | What GCHQ says |
|---|---|
| Arriving | GCHQ first came to Cheltenham in the 1950s; the site in Oakley opened in 1952. |
| The Doughnut | Its Cheltenham headquarters, known affectionately as the Doughnut, has been home since the move there in 2003. |
| Opening | The HQ was officially opened by HM Queen Elizabeth II in 2004. |
| The archive | The GCHQ archive contains around 16 million historical artefacts. |
| Public key cryptography | James Ellis, who joined in 1952, conceived "non-secret encryption"; Malcolm Williamson devised a method of public key exchange. |
GCHQ's account of its own history makes the point this project teaches: the ideas that protect every online payment today came from mathematicians asking whether something that looked impossible could be done, and checking carefully whether something that looked safe really was. A predictable generator is exactly the kind of thing that looks safe until someone checks.
Modern Age Coders has no connection with GCHQ or with any Gloucestershire council, and nothing on this page suggests one. The facts are GCHQ's own; the generator, the attack and any errors are ours.
Nearby pages
Gloucester has its own page, Oxfordshire and Warwickshire lie to the east, and the UK hub lists the rest.
The free lesson places each learner. Age suggests a level; ability decides it.
Scratch games with random events, where children see a computer pick numbers and start to wonder how.
Scratch Coding for KidsCoding for KidsPython with remainders, binary and simple formulas, the pieces a random generator is built from.
Python and AI for KidsMaths Through CodingEthical cyber security and algorithms, with the habit of asking how a system could be predicted or broken.
Cybersecurity for TeensCompetitive Programming for TeensData structures and algorithms for adults, including cycle detection, number theory and the limits of shortcuts.
Data Structures & Algorithms CoursePython MasterclassNot always, and the code works either way until someone attacks it.
Generated code often reaches for the most familiar random function in a language, which is usually designed for games and simulations, not for secrets. The resulting password generator runs perfectly and produces strings that look random, and nothing in a quick test reveals whether the next one can be predicted. The difference only matters when an attacker is watching, which is exactly when it matters most.
A Gloucestershire student who has predicted seventeen numbers from three knows to ask where randomness comes from, whether it is meant for security, and what an attacker could learn from a few outputs. Those questions are how security reviewers read any code, and they are the questions a hurried prompt leaves out.
So a Gloucestershire teenager should learn to code in 2026, in the county of the Doughnut, to be able to tell random-looking from unpredictable. The longer argument is in why teenagers should still learn to code in 2026.
Gloucestershire's valleys and wolds make travel slow. Online lessons skip it entirely.
A bedroom in Newent, a kitchen in Nailsworth, a desk in Thornbury. The teacher shares a screen and the learner codes.
Year groups, GCSE options and A levels are named just as Gloucestershire schools name them, in English.
A real lesson with real work and an honest recommendation. You will not be asked to pay anything.
Between five and ten classmates who are at your stage, from different towns and countries, so nobody waits and nobody is lost.
Most learners take two sessions a week and stop for the same holidays their school takes.
We run on Indian Standard Time at our end, yet every lesson slot we send a Gloucestershire family is written only in UK time, summer or winter.
Why groups are formed by level
Twenty-nine towns spread over valleys, wolds and suburbs rarely give any one place enough learners at the same stage. Level-based groups let a Stroud learner and a Yate learner share a class.
One set of fees across the county, and for every country other than India.
A complete lesson of real work, with a recommended level and course.
About eight lessons a month, five to ten learners at one level.
About eight lessons a month with a teacher and one learner.
Families outside India are billed in US dollars, with no pound list. Payment begins only after the free lesson has agreed a course and a weekly time, and the pricing page covers pauses, missed lessons and switching 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
An age or school year and one interest will do. The first lesson might be a Scratch dice game, a first Python program, or the generator and its three-number attack on this page.
The county, the random numbers project and our lessons.
The six Gloucestershire districts and South Gloucestershire held 935,500 usual residents at the 2021 Census, from ONS data on Nomis. South Gloucestershire was the largest council at 290,424.
By ONS built-up area: Kingswood and Fishponds 160,270 (partly in Bristol), Gloucester 118,555, Cheltenham 115,940, Yate 28,350 and Stroud 26,080. The page lists twenty-nine above five thousand.
Learners build a linear congruential generator, find how soon it repeats with Floyd's method, spot the pattern in its lowest bit, and show that three outputs are enough to predict the next 17 out of 17.
Keys and passwords are only safe if nobody can guess them. A generator whose next output can be worked out from a few earlier ones gives an attacker that guess.
GCHQ says it first came to Cheltenham in the 1950s, with the Oakley site opening in 1952, and moved into its headquarters, known as the Doughnut, in 2003.
No building exists; every session runs over live video, which lets a Cirencester learner and a Lydney learner study side by side from home.
Six to sixty-seven. Scratch for young children, typed Python from about ten, cyber security and algorithms for teenagers, and algorithms or Python for adults. The free lesson sets the level.
Yes, as a defensive and ethical course for ages 13 to 18, from paper ciphers to the HTTPS padlock, with instructor-built puzzles.
The first lesson costs nothing. Stay on and you pay USD 100 monthly for a group seat, or USD 150 monthly for one-to-one lessons; there is no joining charge and no contract length.
Gloucestershire County Council, South Gloucestershire and academies set their own dates. We arrange lesson breaks around your school's calendar.
The Gloucester page covers the city. Neighbouring county pages include Oxfordshire and Warwickshire, and the UK hub has the full list.