Want to keep learning?

This content is taken from the Raspberry Pi Foundation & National Centre for Computing Education's online course, Teaching Programming in Primary Schools. Join the course to learn more.

Introduction to Coding and Programming

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.

Share this article:

This article is from the free online course:

Teaching Programming in Primary Schools

Raspberry Pi Foundation