QuestionQ35

VerifiedCoding Conventions, Best Practices, and Standardization

Choose the true statements about PEP 8 programming recommendations for writing code.

Choose two
Explanation

PEP 8 recommends isinstance() rather than direct type comparisons, allowing appropriate handling of instances and subclasses. It also advises against string literals that depend on significant trailing whitespace, because the whitespace is hard to distinguish visually and may be trimmed by editors.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!