# Pseudocode

> A plan for a program in plain words. People read it, but no computer runs it.

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

## Think of it like

It is like a rough sketch before a painting. You plan the shapes first, then add the paint.

## Definition

Pseudocode is a plan for a program, written in plain words that look a bit like code. It uses steps like if, repeat and stop, but no real language rules. No computer can run it. People use it to think through the steps before they write real code. It is also used in classes and job interviews to explain an idea.

## Example

Before she codes a quiz, Emma writes the steps. For each question, show it and read the answer. Add one point if it is right.

## Example code

```text
set score to 0
for each question:
    show the question
    if the answer is right:
        add 1 to score
show score
```

Plain steps for a quiz. Any language can turn this into code.

## Why it matters

Fixing a plan is much cheaper than fixing code. A few lines of pseudocode can catch a wrong idea early.

## Common mistake

Writing it in so much detail that it becomes real code. Keep it short, so the steps are easy to see.

## Three principles

- **Plain words.** No real language rules to follow.
- **Plan first.** Think through steps before coding.
- **Not run.** People read it, computers do not.

## Related terms

- [Algorithm](https://learn.benibix.com/term/development/algorithm)
- [Program](https://learn.benibix.com/term/development/program)
- [Source Code](https://learn.benibix.com/term/development/source-code)
- [Control Flow](https://learn.benibix.com/term/development/control-flow)
- [Script (Programming)](https://learn.benibix.com/term/development/script)

## Told apart from

- [Pseudocode vs Algorithm](https://learn.benibix.com/compare/pseudocode-vs-algorithm): An algorithm is the list of steps that solves a problem. Pseudocode is one way to write those steps down, in plain words, before they become real code.

## Taught in

- [Hello World in Python](https://learn.benibix.com/learn/development-concepts/hello-world-in-python): Programming Basics, 2/18

![Three panels joined by arrows. A note in plain words says: say hello, then stop. A file named hello.py holds one line, print hello world. A terminal runs python hello.py and prints Hello, world!](https://learn.benibix.com/diagrams/dev7-first-program.svg)

---

Source: https://learn.benibix.com/term/development/pseudocode
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-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
