Question Detail
Question
What is the purpose of the
pass statement in Python?
Correct Answer
Option B is the correct answer.
Detailed Explanation
Page 101 explains: 'The pass statement in Python is used when a statement is required syntactically but you do not want any command or code to execute. The pass statement is a null operation; nothing happens when it executes.'
Hint
Think of it as a 'do nothing' instruction that satisfies syntax requirements.