Question Detail
Question
What is the consequence of incorrectly indenting the code block following an
if statement in Python?
Correct Answer
Option D is the correct answer.
Detailed Explanation
Page 15, 'Mistake #2: Colon & Indent', explains: 'Indentation: Python uses whitespace to know what code belongs to the if block.' Incorrect indentation means Python cannot determine the code block, leading to an error.
Hint
Recall the importance of 'whitespace' in Python for defining code blocks.