Question 1
Topic: Python syntax and structure
Skill tested: Identify indentation and statement syntax errors in a short Python function.
A small analytics team is reviewing a script before adding it to its scheduled reporting workflow. The function should print a status message only when the supplied record count is zero. The script currently fails before producing any output, and the editor reports an indentation-related syntax error. The team wants the smallest change that preserves the intended condition and message; rewriting the function or adding exception handling is out of scope. Which version is syntactically valid and implements the stated behavior?
Python uses indentation to delimit function and conditional bodies, so the `if` statement must be indented inside the function and its `print` statement further indented inside the condition. The function definition also requires a colon, and a comparison in an `if` condition uses `==`. B leaves the function body unindented, C omits the colon after the function header, and D uses assignment syntax where a comparison is required.