💻ap computer science a review

Indentation

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated August 2025

Definition

Indentation refers to adding spaces or tabs at the beginning of lines of code to visually organize and structure it. In Python, indentation plays an important role in defining blocks of code within control structures like loops and conditionals.

"Indentation" also found in:

2,589 studying →