QuestionQ63Verified/Coding Conventions, Best Practices, and StandardizationCopy linkReport a problemAsk AstroTutorSave questionChoose the true statements about PEP 8 naming conventions.Choose twoAClass names should use the mixedCase naming style.BException names should follow the function naming conventions.CModules should have short names entirely in lower-case.DYou should never use the characters "I" (lower-case letter "el") and "O" (upper-case letter "oh") as single character variable names.Show AnswerAnswerExplanationPEP 8 recommends short, all-lowercase names for modules. It also prohibits visually ambiguous single-character variable names, including lowercase l, uppercase O, and uppercase I. Class names, including exception names, follow the CapWords convention rather than function naming conventions.Learn morePEP 8 – Style Guide for Python CodeShow comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion