AP Computer Science A

study guides for every class

that actually explain what's on your next test

Indenting code

from class:

AP Computer Science A

Definition

Indenting code refers to adding spaces or tabs at the beginning of each line within a block of code, typically done with nested structures like loops or conditional statements. It improves readability by visually showing which lines belong to which block.

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.