Facts

Grown-ups

Facts the Peabody Encyclopedia for kids

What grade are you in?

Real facts about everything, written for your grade.

What grade are you in?

Writing Code, Step by Step

How Coding Works: How do people write code?

Read it with Peabody

How do people write code? Let us find out. Here is the first fact. A computer cannot think for itself. So people have to give it instructions.

Next, let us see who does this job. A program is a list of instructions. People called programmers write the code that makes it. Let us see how it goes.

Here is a question: what is code? It is a special language. A computer understands it. Programs are written in it.

Look around you at the things people use. Games are made with programs. Websites are too. So are animation tools.

Look at the steps in a list. The steps have to be in the right order. The order of the steps is called a sequence.

Here is how it works. A computer does one step after another. It does them in the order it is given them.

Say a job has the same steps, again and again. A repeat command makes it do them again. Then the steps are not written out each time.

A mistake in a program is called a bug. You may have heard that a bug is an insect. In fact, a bug is a mistake.

What do people do about bugs? Programmers test a program. They look for bugs. Mistakes are fine. Finding and fixing bugs is a good way to learn.

Last, here is a place to try it out. As of November 2026, Scratch is a coding tool. Kids make their own stories and games with it.

Words to know

  • program: list of instructions
  • programmers: code writers
  • sequence: the order
  • bug: a mistake

Read next

Sources

For grown-ups: Peabody has no ads, not one, and nothing to sell your child. The Kids Pick, an independent kids' directory, rates its games 90/100. See what other free kids' sites load Β· Grown-ups, sign in Β· Already have a profile?