Certified Professional in Python Programming (PCPP-32-101) — Question 26

Select the true statement about PEP 8 recommendations related to line breaks and binary operators.

Answer options

Correct answer: A

Explanation

The correct answer, A, states that using line breaks before binary operators is recommended to enhance code readability, aligning with PEP 8 guidelines. Option B suggests flexibility that is not as strongly endorsed in PEP 8 for new code, while option C incorrectly states the recommendation is after binary operators. Option D entirely dismisses the existence of PEP 8 guidelines on this topic, which is inaccurate.