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
GCSE Computer Science revision resources

Share this article

James Woodhouse

Reviewer: James Woodhouse

Expertise: Computer Science & English Subject Lead

James graduated from the University of Sunderland with a degree in ICT and Computing education. He has over 14 years of experience both teaching and leading in Computer Science, specialising in teaching GCSE and A-level. James has held various leadership roles, including Head of Computer Science and coordinator positions for Key Stage 3 and Key Stage 4. James has a keen interest in networking security and technologies aimed at preventing security breaches.

The examiner written revision resources that improve your grades 2x.

Join now