Style Guide
Python coding style, naming conventions, and formatting best practices based on PEP 8 and community standards.
12345
Python Naming Conventions
Learn when to use snake_case, CamelCase, UPPER_SNAKE, and other naming styles in Python.
Code Formatting & Layout
PEP 8 formatting rules for indentation, line length, imports, and whitespace.
Docstrings & Comments
Write clear documentation with docstrings, comments, and type hints following PEP 257.
Type Hints & Annotations
Add type safety to Python with type hints, generics, and static type checkers.
Project Structure
Organize Python projects with proper module layout, packaging, and common patterns.