What Is Indentation
What Is Indentation
In many programming languages (like Java or C++), code blocks are defined using braces {}. But in
Python, code blocks are defined only by their indentation level.
o It tells Python which lines of code belong together—like inside an if statement, loop,
function, or class.
3. Improves readability
o Python enforces clean and consistent formatting, making code easier to read and
maintain.
if 5 > 3:
if 5 > 3:
Output: