Problem Statement
Is indentation required in Python?
Explanation
Indentation is mandatory in Python because it defines the structure of code blocks. Instead of braces or keywords, Python uses indentation level to determine which statements belong together.
This rule improves readability but also enforces strict consistency. Incorrect indentation leads to an Indentation Error during execution.
Code Solution
SolutionRead Only
if True:
print('Yes')