Indentation - GCSE Computer Science Definition
Reviewed by: James Woodhouse
Last updated
In computer science, "indentation" refers to the practice of adding spaces or tabs at the beginning of lines of code to show the structure and organisation of the code. This is important because it makes the code easier to read and understand. In some programming languages, like Python, indentation is not just for looks—it is required to indicate which lines of code belong to which parts of a program, such as loops or if statements. Correct indentation helps programmers see which code is grouped together, making it clear and clean to follow what the program does.
Examiner-written GCSE Computer Science revision resources that improve your grades 2x
- Written by expert teachers and examiners
- Aligned to exam specifications
- Everything you need to know, and nothing you don’t

Share this article