Skip main navigation

Introduction to Coding and Programming

Read about what programming is, and why coding is an important part.

Computers can help us with a wide range of problems, but in order for this to happen, we need to undertake a 2-step process:

  1. Formulate the precise sequence of steps needed to solve the problem. This is known as an algorithm.

  2. Give the algorithm to a computer in a language it understands, so that it can perform the task(s) we give it. This is known as coding.

The process of creating algorithms and turning them into code is called programming.

Algorithms + Coding = Programming

Natural language isn’t used for coding because it’s too imprecise. Here’s a joke that illustrates this point:

A programmer is going to the supermarket and is told: “Buy a pint of milk, and if there are eggs, buy a dozen.” The programmer goes to the supermarket, buys everything, and drives back to his house. Upon arrival, he is angrily asked “Why did you get 12 pints of milk?” The programmer says, “Because they had eggs!”

If there are eggs

In the next activity, you’re going to code an algorithm to tell a ‘Knock Knock’ joke.

This article is from the free online

Teaching Programming in Primary Schools

Created by
FutureLearn - Learning For Life

Our purpose is to transform access to education.

We offer a diverse selection of courses from leading universities and cultural institutions from around the world. These are delivered one step at a time, and are accessible on mobile, tablet and desktop, so you can fit learning around your life.

We believe learning should be an enjoyable, social experience, so our courses offer the opportunity to discuss what you’re learning with others as you go, helping you make fresh discoveries and form new ideas.
You can unlock new opportunities with unlimited access to hundreds of online short courses for a year by subscribing to our Unlimited package. Build your knowledge with top universities and organisations.

Learn more about how FutureLearn is transforming access to education