Skip to content
BENIBIX Learn

Programs and Source Code

Level 1 · What a program is

What a program is, and what source code is. How input goes in and output comes out, and what a software developer does all day.

Course contentsLesson 1 of 18

After this lesson you can

  • Say what a program is
  • Tell source code from the running program
  • Name the input and output of a program

10 mincovers 6 glossary entries

What a program is, and where its code lives

A program is a list of steps that a computer follows in order. Each step is tiny, such as add two numbers or show a word. A modern chip can run billions of these steps every second. That speed is why a short list of steps can do a big job.

All the programs on a computer, together, are called software. A web browser is software. So is a game, a calculator and the system that starts the machine. You cannot touch software the way you touch a screen or a keyboard. You can only run it and see what it does.

The steps are written as text, called source code. People write it and people read it, in a language the computer can be taught to follow. This course uses Python. A line of Python looks like print("Hi"). It is plain text, so any text editor can open it.

Most programs follow the same shape. Something goes in, the program works on it, and something comes out. What goes in is the input: a key you press, a file, or a number you type. What comes out is the output: words on the screen, a sound or a saved file.

A software developer is a person whose job is to make software. Writing code is only part of it. They also plan what to build, test that it works, and fix what breaks. Much of their day is spent reading code, both their own and other people's.

Big programs are built in stages. The software development life cycle names them: plan, design, build, test, release, and then look after it. Lists differ, but most have six or seven stages. The steps repeat, because every new feature goes round the same loop again.

This course covers the basics that every language shares. It stops there. How the main languages differ, and the bigger ways to shape a program, are separate subjects. People often think coding is mostly typing. It is mostly thinking, then reading, then a little typing.

Every program has the same shape. Something goes in, the steps run in order, and something comes out.

Worked example

Emma's shopping list program

Emma types 4 prices into a small program: 2.50, 1.20, 3.00 and 0.80. Those four numbers are the input.

The program adds them up and prints Total: 7.50. That line is the output. The source code that did it is just 3 lines long.

The words for this lesson6

Check yourself

What is source code?

Finished this lesson?

Marking it complete also marks its 6 glossary entries learned, which updates your roadmap and your saved page. 0 are already marked.