QuestionQ24

VerifiedCoding Conventions, Best Practices, and Standardization

Choose the true statements concerning PEP 8 naming conventions.

Choose two
Explanation

PEP 8 recommends lowercase function and variable names with underscores between words. It also specifies self as the first parameter of instance methods and cls as the first parameter of class methods. Module names are lowercase, and constants conventionally use uppercase letters with underscores.

Community Discussion

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