From the course: Certified Entry-Level Python Programmer (PCEP-30-02) Cert Prep

Unlock the full course today

Join today to access over 24,500 courses taught by industry experts.

PEP 8 style guidelines and indentation

PEP 8 style guidelines and indentation

- [Instructor] And a style guideline define rules and conventions for code readability. So it's not about syntax errors, it's about writing code that looks good. This is useful when working with teams, for example, when several persons are working on the same project, on the same source code. And sometimes you can enforce these guidelines through tools. In Python, we have a standard guideline that is the most famous guideline known as PEP 8. PEP stands for Python Enhancement Proposals. And actually, as we mentioned before, Python today is a foundation and is managed by the community. And on any community, we have rules, some kind of laws. And every law in Python, it's a PEP. So PEP 8 is the eighth law. So every new feature of Python, it's a new law, so it's PEP and a number. So PEP 8 is the most famous style guideline in Python. Sometimes we'll explain the syntax of Python in one particular place, and also, we'll…

Contents