Home »
MCQs »
Python MCQs
In Python, ___ defines a block of statements
33. In Python, ___ defines a block of statements.
- Block
- Loop
- Indentation
- None of the mentioned above
Answer: C) Indentation
Explanation:
Python's concept of indentation is extremely important because, if the Python code is not properly indented, we will encounter an Indentation Error and the code will not be able to be successfully compiled. In Python, to indicate a block of code, we must indent each line of the block by the same amount on each line of the block. As a result, indentation denotes the beginning of a block of statements.