---
title: "Best Coding Classes in Edinburgh | Modern Age Coders"
description: "Live online coding, Python, AI and maths classes for Edinburgh learners aged 6 to 67, from Leith and Portobello to Morningside and Corstorphine. First lesson free."
canonical: https://learn.modernagecoders.com/best-coding-class-in-edinburgh
source: src/pages/best-coding-class-in-edinburgh.html
---
> Live online coding, Python, AI and maths classes for Edinburgh learners aged 6 to 67, from Leith and Portobello to Morningside and Corstorphine. First lesson free.

Skip to contentCourse picks for Edinburgh

## Four courses for the observatory city

Let the learner's interests guide the choice. Every course starts with a free live lesson, and no card is needed.

[![Python and AI for Kids course thumbnail](/images/python-kids.webp)Ages 9 to 12Python and AI for KidsPython and turtle graphics for 9 to 12 year olds, where a drawing of the sun climbing and setting is a natural first model.See the syllabus](/courses/python-ai-kids-masterclass)[![Maths Through Coding course thumbnail](/images/maths-through-coding.webp)Ages 10 to 15Maths Through CodingGeometry, angles and coordinates built in Python, the groundwork for any calculation of where the sun is.See the syllabus](/courses/maths-through-coding)[![High School Mathematics course thumbnail](/images/high-school-maths.webp)Secondary yearsHigh School MathematicsAlgebra to calculus with trigonometry at its heart, the mathematics inside every sunrise calculation.See the syllabus](/courses/complete-high-school-mathematics-mastery)[![Python Masterclass course thumbnail](/images/python-college.webp)University and adultPython MasterclassPython from zero to advanced for adults, with models checked against real published data as a habit from the start.See the syllabus](/courses/python-programming-masterclass-zero-to-advanced-college)

Browse the [course atlas](/course-atlas) for more than one hundred options and use the [coding roadmap](/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.

[![Vibe Coding for Teens course thumbnail](/images/vibe-coding-teens.webp)Vibe codingAges 13 to 17Vibe Coding for TeensPython, web and AI projects where the learner still owns the thinking.See the syllabus](/courses/vibe-coding-for-teens-python-web-ai-projects-course)[![Python Automation Course course thumbnail](/images/python-college.webp)Python and AICollege and adultPython Automation CourseAutomate the work you already do, then let AI carry part of it.See the syllabus](/courses/python-ai-automation-masterclass-college)[![AI and Machine Learning for Teens course thumbnail](/images/ai-ml-teens.webp)AI and MLAges 14 to 18AI and Machine Learning for TeensTrain a model, read what it learned, and be able to say why it is wrong.See the syllabus](/courses/ai-ml-masterclass-teens)[![Codex & Claude Code course thumbnail](/images/codex-claude-code-adults.webp)Agentic codingProfessionalsCodex & Claude CodeRun AI coding agents on real work without losing control of the codebase.See the syllabus](/courses/codex-and-claude-code-ai-coding-agents-masterclass-for-adults-professionals)Edinburgh today

## A dense capital with a large working-age population

From Scotland's Census 2022, published by National Records of Scotland. Counts are rounded to the nearest hundred, so they are quoted as published and never added together.

| Measure | Edinburgh | Scotland |
| --- | --- | --- |
| Usual residents, rounded | 512,700 | 5,436,600 |
| Usual residents in 2011 | 476,626 | Not compared |
| Households, rounded | 238,900 | Not compared |
| Aged 20 to 24, rounded | 48,600 | 337,000 |
| Share aged 0 to 14 | 13.7% | 15.3% |
| Share aged 15 to 64 | 70.3% | 64.6% |
| Share aged 65 and over | 16.0% | 20.1% |
| Residents per square kilometre | 1,946.5 | 69.8 |

### Working-age heavy

People aged 15 to 64 made up 70.3% of Edinburgh's residents in 2022, compared with 64.6% for Scotland as a whole.

### Fewer at both ends

Children aged 0 to 14 were 13.7% and people aged 65 and over 16.0%, both below Scotland's 15.3% and 20.1%.

### Tightly packed

With 1,946.5 residents per square kilometre, Edinburgh is far denser than Scotland's average of 69.8.

National Records of Scotland also reports that 21.1% of Edinburgh households had dependent children in 2022. Learners here can be at any stage, from a P5 pupil in Portobello making a first animation to an S4 student in Corstorphine working towards National 5 Computing Science, or an adult in Leith learning Python for work, and each joins a group of five to ten at their own level.

Stars over the city

## Two observatories and a castle rock

From the Royal Observatory Edinburgh and Historic Environment Scotland.

### 1583

The Royal Observatory Edinburgh says astronomy has been taught in the city since the town's college opened in 1583, and that the University's first Chair of Astronomy was established in 1786.

### 1822

Calton Hill became the Royal Observatory during George IV's visit to Scotland that year. In 1834 Thomas Henderson became the first Astronomer Royal for Scotland; the Observatory calls him the first astronomer to measure parallax and so the distance to the stars.

### 1896

A new Royal Observatory on Blackford Hill came into being. Today it brings together a university astronomy research group, a UK research council establishment and a visitor centre on a single site.

Down in the city, Historic Environment Scotland describes St Margaret's Chapel in Edinburgh Castle, built by King David I in honour of his mother Queen Margaret, who died at the castle in 1093, as Edinburgh's oldest building. We have no connection with the Royal Observatory, the University of Edinburgh or Historic Environment Scotland. We mention them because Edinburgh has been calculating the sky for centuries, and the project on this page is a small, modern piece of that tradition.

The authority we checked against

The United States Naval Observatory publishes sunrise and sunset times for any place and date through its Astronomical Applications service. We compared our program with it at Edinburgh Castle on six dates across 2026, twelve times in all, and the largest disagreement was one minute.

Signature project

## Sunrises, sunsets and pale summer nights

Solar geometry turns the date, the time and a latitude into the sun's height above or below the horizon. We ran it for every minute of 2026 at Edinburgh Castle.

| Measure | Result |
| --- | --- |
| Longest day, around the June solstice | 17 hours 37 minutes |
| Shortest day, 21 December | 6 hours 57 minutes |
| London on 21 June and 21 December | 16 hours 38 minutes and 7 hours 50 minutes |
| Lowest sun at midsummer | 10.6 degrees below the horizon |
| Nights without astronomical darkness | 96, from 4 May to 7 August |
| Nights when the sun stays within 12 degrees of the horizon | 40, from 1 June to 10 July |
| Largest gap from the Naval Observatory | 1 minute, across 12 times tested |

### 1. Where is the sun?

Two angles fix it: the declination, which swings between about 23.4 degrees north and south over the year, and the hour angle, which turns 15 degrees every hour.

### 2. Tilt it to Edinburgh

One line of spherical trigonometry combines those angles with Edinburgh's latitude, 55.95 degrees north, to give the sun's height at any moment.

### 3. Scan and compare

Step through every minute of every day, note where the height crosses the sunrise line, and compare the times with the Naval Observatory's.

### Why the nights stay pale

At midsummer the sun passes only 10.6 degrees below Edinburgh's northern horizon at the darkest point of the night. Astronomers need it 18 degrees down for true darkness, so for 96 nights the sky never quite goes black, and for 40 nights around midsummer the sun never even reaches 12 degrees down. London, about 4.4 degrees further south, loses astronomical darkness on only 60 nights and gets past 12 degrees every night of the year.

Two details decide whether the program agrees with the observatory. Sunrise is defined as the moment the top edge of the sun appears, allowing for the air bending its light, which puts the sun's centre 0.833 degrees below the horizon; use zero instead and every day comes out 12 to 16 minutes too short. And times need one clock: the program works in UTC and converts to British Summer Time only for display, because mixing the two silently shifts half the year by an hour.

Checking a model against the sky

## Five checks for code that models the real world

Learned on sunrise times, used afterwards on satellite passes, solar panel planning, navigation apps, game physics and any program that turns angles into positions.

| Check | What it looks like | What it prevents |
| --- | --- | --- |
| Test against an authority | Compare with an independent published source such as the Naval Observatory | A confident answer nobody has checked |
| Use one clock | Compute in UTC and convert only when displaying | Half the year silently out by an hour |
| Define the event | State what sunrise means, including the 0.833-degree allowance | Answers that differ by minutes for no visible reason |
| Handle the edge cases | Allow for nights when the sun never reaches a threshold at all | Programs that crash or invent a time on midsummer nights |
| Report the precision | Say the model agrees to within a minute, and claim no more | Seconds printed that the method cannot support |

The fourth check is where Edinburgh differs from cities further south. On midsummer nights here the sun simply never reaches 12 degrees below the horizon, so a program asking when nautical twilight ends has no answer to give. Code written and tested only in London would never meet that case; Edinburgh learners meet it in their first week.

### Younger learners

Shadows measured in the playground through the day, and a short program that draws the sun rising and setting.

### Teenagers

The solar formulas coded in Python, a whole year computed, and every answer checked against the Naval Observatory.

### Adults

Physical models at work, from energy to logistics, validated against published data before anyone relies on them.

We are not connected with National Records of Scotland, the Royal Observatory Edinburgh, Historic Environment Scotland or the United States Naval Observatory. The census data and observatory times are published for public use; the model and its results are our own work.

Learning ladder

## From playground shadows to a checked solar model

Ages are a first guess only; the free lesson settles the real level.

Ages 6 to 10

### Shadows and daylight

Watching shadows shorten and lengthen, timing daylight through the seasons and animating a simple sunrise.

[Elementary Maths for Grades 1-5](/courses/elementary-mathematics-complete-masterclass)[Coding for Kids](/courses/kids-coding-blocks-masterclass)Ages 11 to 13

### Angles and time

Degrees, compass bearings and clocks, and a first program that turns an angle into a position on screen.

[Maths Through Coding](/courses/maths-through-coding)[Middle School Mathematics Mastery](/courses/comprehensive-middle-school-mathematics-mastery)Ages 14 to 18

### Solar geometry in Python

Trigonometry turned into code, a year of sunrises computed and a model tested against an authority.

[High School Mathematics](/courses/complete-high-school-mathematics-mastery)[Python for Teens](/courses/python-complete-masterclass-teens)Ages 18 to 67

### Models checked against reality

Scientific and engineering calculations built carefully, with precision stated and validation part of the job.

[College Maths Course](/courses/college-mathematics-complete-masterclass)[Python Masterclass](/courses/python-programming-masterclass-zero-to-advanced-college)Coding and AI

## Your phone already knows when the sun sets. Why should an Edinburgh teenager calculate it?

Because knowing how an answer is made is the only way to know when it is wrong.

Every weather app shows sunrise and sunset, and an AI assistant will quote them in a moment. Ask why Edinburgh's June nights stay pale, though, or how the app decides the instant of sunrise, and a good answer needs the geometry underneath: declination, hour angle, a latitude of almost 56 degrees and a 0.833-degree allowance for the air. A learner who has built the calculation can check the app, and can spot an answer that is out by an hour because someone mixed up clocks.

The same skills run through a great deal of software. Satellite tracking, solar panel planning, navigation and game physics all turn angles into positions with trigonometry and then check the results against measurement. Validating a model against an authority, as this project does with the Naval Observatory, is exactly how serious scientific code earns trust.

So an Edinburgh teenager should still learn to program in 2026, in a city with a Royal Observatory since 1822: answers are cheap now, and the ability to build a model and prove it right is what makes a programmer worth trusting. The longer argument is in [why learning to code still matters in 2026](/blog/is-coding-worth-learning-2026).

Delivery

## Leith, Morningside or Portobello, from home

Edinburgh's hills and cobbles slow down every journey; a live online lesson skips the journey entirely.

### Old Town to outer estates

A learner in Stockbridge and another in Gilmerton can share a lesson without either crossing the city.

### Scottish stages, Scottish names

P1 to P7, S1 to S6, National 5, Higher and Advanced Higher: we use the stage names Edinburgh schools use, and every lesson is in English.

### A first lesson that teaches

The free lesson covers a real task and ends by recommending a level, a course and a weekly time. No card details are needed.

### Groups built on level

Five to ten learners at one stage, from Edinburgh, elsewhere in the UK and abroad, so every level has a slot that works.

### Twice a week, fixed times

Two lessons a week at the same times, around eight a month, with holiday and exam breaks agreed with the teacher in advance.

### Taught from India

India Standard Time never shifts, so our teachers are four and a half hours ahead of Edinburgh in British Summer Time and five and a half in winter; after-school and evening lessons fall inside their day.

Across the Lothians

Families in Musselburgh, Dalkeith or Livingston join exactly the same groups, because every lesson is online and groups are formed by level rather than postcode.

Fees

## Edinburgh lesson fees

A free first lesson and then one monthly price.

First class**USD 0**

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

Group tuition**USD 100**

Around eight live lessons a month, with five to ten learners working at one level.

Private tuition**USD 150**

Around eight live lessons a month for one learner and one teacher.

Families outside India all pay the same US dollar fee, so Bruntsfield and Craigmillar pay exactly the same, and we do not publish prices in pounds. Nothing is billed until the free lesson has agreed a course and a time, and the pricing page covers pauses, missed lessons and moving between group and one-to-one teaching.

Request placement[Check availability](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20I%20would%20like%20a%20free%20coding%20lesson%20for%20a%20learner%20in%20Edinburgh.)Reviews

## Six families' Google reviews, printed in full

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 an Edinburgh learner

We match the first task to the learner: shadows and an animated sunrise for a young child, a first Python program that works with angles, or a full year of Edinburgh sunrises checked against the Naval Observatory for a teenager ready for real science.

### Contact the team directly

WhatsApp or call [+91 91233 66161](tel:+919123366161), or email [contact@modernagecoders.com](mailto:contact@modernagecoders.com). This is Modern Age Coders' actual contact, an Indian number, and not an invented Edinburgh one.

[WhatsApp Modern Age Coders](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20I%20would%20like%20a%20free%20coding%20lesson%20for%20a%20learner%20in%20Edinburgh.)

Submitted details are used for placement and follow-up.

FAQ

## Edinburgh coding class questions

The questions Edinburgh families ask us most.

### How many people live in Edinburgh?

Scotland's Census 2022 counted about 512,700 usual residents in the City of Edinburgh, rounded to the nearest hundred, compared with 476,626 in 2011. There were about 238,900 households.

### How does Edinburgh's population compare with Scotland's?

In 2022, 70.3% of Edinburgh residents were aged 15 to 64, against 64.6% across Scotland, while 13.7% were aged 0 to 14 and 16.0% were 65 or over.

### Why do Edinburgh's summer nights not get dark?

Because at midsummer the sun dips only about 10.6 degrees below the horizon. True astronomical darkness needs 18 degrees, so on our calculation for 2026 it never arrives on 96 nights, from 4 May to 7 August.

### How long is Edinburgh's longest day?

About 17 hours 37 minutes of sun above the horizon around the June solstice in 2026, roughly an hour more than London, and about 6 hours 57 minutes on 21 December.

### Who was Thomas Henderson?

The first Astronomer Royal for Scotland, appointed in 1834, whom the Royal Observatory Edinburgh describes as the first astronomer to measure parallax and determine the distance to the stars. We are not connected with the Observatory.

### Do you teach Scottish qualifications?

We use the Scottish stage names and support learners working towards National 5 and Higher Computing Science; our National 5 and Higher pages explain the courses. All teaching is in English.

### When are Edinburgh lessons held?

After school, in the evening or at weekends, at a UK time chosen during the free lesson. Our teachers are four and a half hours ahead in summer and five and a half in winter.

### Is there a Modern Age Coders centre in Edinburgh?

No. There is no Edinburgh centre and no premises anywhere in the UK; every lesson is taught live online. Learners need a computer with sound and a reliable connection, and our phone number is based in India.

### How much do Edinburgh lessons cost?

The first lesson is free. After that a group place is USD 100 a month for two live lessons a week, about eight a month, with five to ten learners, and one-to-one lessons on the same timetable are USD 150 a month. Course, format and time are agreed before any charge.

### How are Edinburgh 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 offer one-to-one lessons instead.

Explore Scotland and the UK

## Scottish guides and other cities

The [Scotland guide](/coding-and-ai-classes-in-scotland) explains coding across the Curriculum for Excellence, and exam help lives on the [National 5 Computing Science](/national-5-computing-science-help) and [Higher Computing Science](/higher-computing-science-help) pages. South of the border, [Newcastle upon Tyne](/best-coding-class-in-newcastle-upon-tyne) colours its wards with four colours. Every UK page is linked from the [UK coding page](/coding-classes-in-united-kingdom).

Book the free class[Message us on WhatsApp](https://wa.me/919123366161?text=Hello%20Modern%20Age%20Coders%2C%20I%20would%20like%20a%20free%20coding%20lesson%20for%20a%20learner%20in%20Edinburgh.)Free Edinburgh class[Call +91 91233 66161](tel:+919123366161)

## Keep exploring Modern Age Coders

### Coding classes in nearby cities

- [Best Coding Classes in Ely](/best-coding-class-in-ely)
- [Best Coding Classes in Durham](/best-coding-class-in-durham)
- [Best Coding Classes in Exeter](/best-coding-class-in-exeter)
- [Best Coding Classes in Dunfermline](/best-coding-class-in-dunfermline)
- [Best Coding Classes in Glasgow](/best-coding-class-in-glasgow)
- [Best Coding Classes in Dundee](/best-coding-class-in-dundee)
- [Best Coding Classes in Sunderland](/best-coding-class-in-sunderland)
- [Best Coding Classes in Worcester](/best-coding-class-in-worcester)
- [Best Coding Classes in Preston](/best-coding-class-in-preston)

### Free resources

- [C++ Tutorial: From Basics to Advanced](/resources/cpp)
- [Variables, Data Types, and Type Casting](/resources/cpp/variables-and-data-types)
- [Conditional Statements (if, else, switch)](/resources/cpp/conditional-statements)
- [Feature Engineering and Feature Selection](/resources/ai-and-machine-learning/feature-engineering)

### From the blog

- [Learn Python Step by Step: The Free Tutorial Library](/blog/learn-python-step-by-step)
- [Learn Python for Beginners: Complete Step-by-Step Guide (2026)](/blog/python-for-beginners)
- [Python vs JavaScript: Which Should You Learn First?](/blog/python-vs-javascript-which-to-learn-first)

### Start here

- [Modern Age Coders pricing, one honest price per plan](/pricing)
- [How Modern Age Coders teaches, small batches and real projects](/how-we-teach)

---

*Canonical: https://learn.modernagecoders.com/best-coding-class-in-edinburgh*
