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 - Python Tutorial
From the course: Certified Entry-Level Python Programmer (PCEP-30-02) Cert Prep
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
Fundamentals of Python12m 52s
-
(Locked)
Writing and executing Python code12m 46s
-
(Locked)
Python code structure10m 32s
-
(Locked)
PEP 8 style guidelines and indentation4m 30s
-
(Locked)
Variables and literals10m 55s
-
(Locked)
Output messages to the console4m 7s
-
(Locked)
Defining numerical representations9m 30s
-
(Locked)
Working with strings12m 14s
-
(Locked)
Using operators8m 57s
-
(Locked)
Receiving input data from the console5m 52s
-
-
-
-
-