Skip to content
Home/United Kingdom/Gloucestershire
County of Gloucestershire

Coding classes in Gloucestershire

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.

Courses for Gloucestershire

Gloucestershire learners often begin here

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.

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.

Gloucestershire in figures

Seven councils, 935,500 people, from the Forest to the Cotswolds

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

The seven councils of ceremonial Gloucestershire, usual residents at Census 2021, largest first
CouncilUsual residentsMain towns
South Gloucestershire290,424Yate, Bradley Stoke, Patchway, Thornbury, Filton, Kingswood
Gloucester132,416Gloucester
Stroud121,104Stroud, Stonehouse, Dursley, Cam, Nailsworth
Cheltenham118,836Cheltenham
Tewkesbury94,884Bishop's Cleeve, Tewkesbury, Churchdown
Cotswold90,832Cirencester, Tetbury, Moreton-in-Marsh
Forest of Dean87,004Lydney, 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.

Gloucestershire built-up areas above 5,000 residents, 2021 Census, largest first; the city of Bristol is left out
TownResidentsTownResidents
Kingswood and Fishponds160,270Brockworth12,005
Gloucester118,555Filton10,960
Cheltenham115,940Lydney9,660
Yate28,350Cinderford8,775
Stroud26,080Stonehouse8,300
Bradley Stoke25,200Chipping Sodbury8,025
Quedgeley and Hardwicke21,125Dursley7,935
Cirencester17,715Cam7,730
Patchway16,520Chalford6,660
Bishop's Cleeve16,325Tetbury6,455
Frampton Cotterell and Winterbourne14,970Nailsworth5,660
Thornbury14,485Newent5,360
Tewkesbury14,390Coleford5,020
Churchdown13,480Moreton-in-Marsh5,010
Stoke Gifford13,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 Gloucestershire project

A random number generator, and three numbers that break it

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.

Our run of 26 September 2026: the same one-line generator with different constants, modulus 65,536
ConstantsNumbers before repeatingVerdict
a = 25,173, c = 13,84965,536, every possible valueThe longest cycle possible at this size
a = 25,173, c = 13,848 (even)16,384A quarter of the values never appear
a = 25,172 (even multiplier)Falls into a loop of length 1Useless: it gets stuck on one number
a = 4, c = 1Falls into a loop of length 1Useless 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.

Ages 10 to 13

Write the one-line generator in Python, print its first twenty numbers, and write out each in binary to spot the last-digit pattern.

Ages 13 to 16

Implement Floyd's tortoise and hare, find the period for several choices of a and c, and explain which choices fail.

Ages 16 and up

Recover a and c from three outputs by modular arithmetic, predict the rest, and read why real cryptography uses different generators.

What this is and is not

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.

Why Cheltenham

The Doughnut, and the county's place in the history of codes

The Gloucestershire link, in GCHQ's own words.

GCHQ in Gloucestershire, from GCHQ's own pages
TopicWhat GCHQ says
ArrivingGCHQ first came to Cheltenham in the 1950s; the site in Oakley opened in 1952.
The DoughnutIts Cheltenham headquarters, known affectionately as the Doughnut, has been home since the move there in 2003.
OpeningThe HQ was officially opened by HM Queen Elizabeth II in 2004.
The archiveThe GCHQ archive contains around 16 million historical artefacts.
Public key cryptographyJames 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.

Stages

From rolling dice on screen to breaking a weak generator

The free lesson places each learner. Age suggests a level; ability decides it.

Ages 6 to 10

Chance in games

Scratch games with random events, where children see a computer pick numbers and start to wonder how.

Scratch Coding for KidsCoding for Kids
Ages 10 to 13

Numbers and binary

Python with remainders, binary and simple formulas, the pieces a random generator is built from.

Python and AI for KidsMaths Through Coding
Ages 13 to 18

Security thinking

Ethical cyber security and algorithms, with the habit of asking how a system could be predicted or broken.

Cybersecurity for TeensCompetitive Programming for Teens
Ages 18 to 67

Algorithms that hold up

Data structures and algorithms for adults, including cycle detection, number theory and the limits of shortcuts.

Data Structures & Algorithms CoursePython Masterclass
AI and randomness

Ask an AI for a random password generator. Will it use a random source that cannot be predicted?

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

How lessons work

Coleford to Chipping Sodbury, from your own desk

Gloucestershire's valleys and wolds make travel slow. Online lessons skip it entirely.

At home, live

A bedroom in Newent, a kitchen in Nailsworth, a desk in Thornbury. The teacher shares a screen and the learner codes.

School terms we use

Year groups, GCSE options and A levels are named just as Gloucestershire schools name them, in English.

The first lesson is free

A real lesson with real work and an honest recommendation. You will not be asked to pay anything.

Grouped by skill

Between five and ten classmates who are at your stage, from different towns and countries, so nobody waits and nobody is lost.

Term-time rhythm

Most learners take two sessions a week and stop for the same holidays their school takes.

Clock times made simple

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.

Fees

Gloucestershire fees

One set of fees across the county, and for every country other than India.

First classUSD 0

A complete lesson of real work, with a recommended level and course.

Group tuitionUSD 100

About eight lessons a month, five to ten learners at one level.

Private tuitionUSD 150

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.

Reviews

Six Google reviews from our families

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

Request a free lesson

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.

+44

FAQ

Gloucestershire questions

The county, the random numbers project and our lessons.

How many people live in Gloucestershire?

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.

What are the largest towns in Gloucestershire?

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.

What is the random numbers project?

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.

Why does predictability matter?

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.

When did GCHQ come to Cheltenham?

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.

Is there a classroom in Gloucester or Cheltenham?

No building exists; every session runs over live video, which lets a Cirencester learner and a Lydney learner study side by side from home.

What ages do you teach?

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.

Do you teach cyber security to teenagers?

Yes, as a defensive and ethical course for ages 13 to 18, from paper ciphers to the HTTPS padlock, with instructor-built puzzles.

What does it cost?

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.

When are Gloucestershire school holidays?

Gloucestershire County Council, South Gloucestershire and academies set their own dates. We arrange lesson breaks around your school's calendar.

More UK pages

Around Gloucestershire

The Gloucester page covers the city. Neighbouring county pages include Oxfordshire and Warwickshire, and the UK hub has the full list.

Free Gloucestershire classCall +91 91233 66161

Keep exploring Modern Age Coders

Coding classes in nearby places

Free resources

From the blog

Start here