Links

PEP 8 – Style Guide for Python Code | peps.python.org

PEP 8 : Coding Style guide in Python - GeeksforGeeks


PEP 8 — Introduction

PEP 8 is a document that provides guidelines and best practices for writing Python code. It covers topics such as code layout, naming conventions, programming recommendations, and code style. PEP 8 aims to ensure that Python code is consistent, readable, and maintainable. It is widely used and highly regarded in the Python community as a standard for coding style.

PEP 8 – Style Guide for Python Code

Author: Guido van Rossum ([email protected])>, Barry Warsaw ([email protected]), Nick Coghlan ([email protected])

Status: Active

Type: Process

Created: 05-Jul-2001

**Post-History:**05-Jul-2001, 01-Aug-2013


Introduction

This document gives coding conventions for the Python code comprising the standard library in the main Python distribution. Please see the companion informational PEP describing style guidelines for the C code in the C implementation of Python.

This document and PEP 257 (Docstring Conventions) were adapted from Guido’s original Python Style Guide essay, with some additions from Barry’s style guide [2].

This style guide evolves over time as additional conventions are identified and past conventions are rendered obsolete by changes in the language itself.