# Source Code

> The text of a program, as people write it and read it.

**Field:** Software Development  
**Category:** Programming Concepts  
**Also known as:** Code

## Think of it like

Think of it like the sheet music for a song. People read it, and the band plays from it.

## Definition

Source code is a program written as text that people can read. You type it in a plain file, using a programming language. A tool then turns it into something the machine can run. Developers read, share and fix source code, not the machine version. When people say "the code", they almost always mean this text.

## Example

Lucy opens a file called hello.py. The two lines inside are the source code of her first program.

## Example code

```python
# hello.py
print("Hello, world!")
```

One file with one line. That line is the whole source code.

## Why it matters

Source code is the part people can change. Keep it safe, because without it a program is very hard to fix.

## Common mistake

Thinking the app on your phone is the source code. That is the built version; the code is the text it came from.

## Three principles

- **Plain text.** Code is typed into simple text files.
- **For people.** Code is written so people can read it.
- **Turned into a program.** A tool makes the code run on a machine.

## Related terms

- [Program](https://learn.benibix.com/term/development/program)
- [Syntax](https://learn.benibix.com/term/development/syntax)
- [Comment](https://learn.benibix.com/term/development/comment)
- [Software Developer](https://learn.benibix.com/term/development/software-developer)
- [Codebase](https://learn.benibix.com/term/development/codebase)
- [Module (Programming)](https://learn.benibix.com/term/development/module)

## Taught in

- [Programs and Source Code](https://learn.benibix.com/learn/development-concepts/programs-and-source-code): Programming Basics, 1/18

---

Source: https://learn.benibix.com/term/development/source-code
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-19
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
