
Coding Education
What Is Source Code (Kode Sumber)

Bayu Nugraha
Children's Coding Specialist

Source code (kode sumber) is the collection of written instructions a programmer creates in a programming language, before it is turned into a program a computer can run. Source code is written as plain, human-readable text — for example saved in a file ending in .py for Python — and is then translated by the computer into commands the machine understands.
How Source Code Works
Source code is like a "recipe" written by a programmer. A computer does not understand human language directly, so the source code must be translated first. There are two common approaches: some languages use an interpreter that reads the code line by line, while others use a compiler that translates the whole file at once into a program.
In Scratch, source code is the set of colorful blocks a child snaps together. In Python, source code is lines of text saved in a .py file. For example, a child writes one line, print("Hello!"), in a file called hello.py. That line is source code. When the file runs, Python reads the source code and shows the word "Hello!" on the screen.
Fun fact: the source code of a large project like the Chromium browser has tens of millions of lines written by thousands of programmers around the world.
Why It Matters for Kids
Understanding source code helps children see that a program is not magic, but instructions they can write and change themselves. It builds logic and the confidence to create technology instead of only using it. In Algonova's coding course, kids learn to write source code step by step, from Scratch blocks to Python. For a related term, see what is a programming language.
Try a free coding class and watch your child write their first line of code.

