What is PEP 8 and why is it needed?
Answer
•PEP 8 — Python code style.
•Makes code readable and consistent in a team.
•Indents: 4 spaces.
•Names: snake_case for functions/variables, PascalCase for classes.
•Autoformatter: black, linter: ruff.
Was this answer helpful?