What is PEP 8?
Model answer
PEP 8 is the official style guide for Python code: naming (snake_case for functions and variables, PascalCase for classes), four-space indentation, line length, and spacing. Following it makes code consistent. Tools such as ruff, flake8 and black check or format it.
Learn this topic
What Is Python? Install It and Write Your First Program in the course Python for Beginners: Learn to Code with Real Projects.
Sign in to add your own answer.