Python guides
Every published Python guide, newest first, with practical examples you can copy into your own project.
3,965 guides across 14 topics
Topics
Popular Python guides
Most readLatest Python guides
Page 177 of 179Python Built-in Data Types: A Practical Reference
python built in data types: Practical guide to Python's built-in data types: behavior, performance characteristics, and when to choose each type for real-world code.
Understanding Python Data Types
A practical guide to Python's built-in data types, their mutability, performance tradeoffs, and how to use type hints effectively in real code.
Python Walrus Operator Usage: Syntax, Scope, Pitfalls
python walrus operator usage: Learn how the Python walrus operator (:=) works: syntax, practical patterns in loops and comprehensions, scope rules, and when to avoid it.
Python Assignment Expression: Syntax and Practical Use
Understand when the Python assignment expression (the walrus operator) improves code and when a normal assignment is clearer, with syntax and examples.
Python Walrus Operator: Syntax, Use Cases, and Pitfalls
Learn how the Python walrus operator (:=) works, when it improves code, and where it can hurt readability and maintainability.
Python Annotated Variables: Syntax and Practical Use
Learn how to annotate variables in Python, how annotations differ from type hints, and how static type checkers use them.
Python Variable Type Annotation: Syntax and Usage
Learn how to use Python variable type annotations to document expected types, improve code clarity, and enable static type checking with mypy.
Python Type Hints: Syntax, Tools, and Runtime
How to use Python type hints: annotation syntax, common patterns, static checking with mypy, and runtime behavior.
Python Dynamic Typing vs Static Typing: When to Use Each
Learn the practical differences between Python's dynamic typing and static type checking, including runtime behavior, type hints, mypy, and when each approach is the right fit.
Python Strong Typing: Type Hints and Static Checks
Understand what strong typing means in Python, how type hints and static checkers like mypy help catch type errors, and when runtime validation is needed.