Exam PCPP-32-101 Topic 9 Question 8 Discussion

Actual exam question for Python Institute's PCPP-32-101 exam
Question #: 8
Topic #: 9
Select the true statements related to PEP 8 programming recommendations for code writing. (Select two answers:)

Suggested Answer: B,D Vote an answer

Explanation
The two true statements related to PEP 8 programming recommendations for code writing are Option B and Option D.
Option B is true because PEP 8 recommends making object type comparisons using the isinstance() method instead of comparing types directly 1.
Option D is true because PEP 8 recommends not writing string literals that rely on significant trailing whitespaces as they may be visually indistinguishable, and certain editors may trim them 1.

by Duke at Jun 28, 2026, 02:30 AM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

0
0
0
10