Which naming style does PEP 8 recommend for Python class names?
Correct answer B. CapWords, for example BankAccount
Explanation
PEP 8 says class names should normally use the CapWords convention, also called CamelCase. Function and variable names use lowercase words separated by underscores, and module-level constants use UPPER_CASE. mixedCase is allowed only where it is already the prevailing style for consistency.
Answer checked How we write and check questions
Discussion