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 176 of 179Python Tuple Type: Immutable Sequences Explained
Learn how the Python tuple type works: construction, type annotations, unpacking, named tuples, and when to choose tuples over lists for memory efficiency.
Python List Type: Behavior, Annotations, and Performance
python list type: Understand Python's list type: runtime behavior, type annotations, common operations, performance tradeoffs, and compatibility considerations for mod...
Python bytearray Type: Mutable Binary Data
python bytearray type: Learn how to use Python's bytearray type for mutable binary data: creation, mutation, conversions, performance, and common pitfalls.
Python Bytes Type: Binary Data Handling
python bytes type: Learn how to create, manipulate, and convert Python bytes objects for binary data handling, with practical examples and performance considerations.
Python str Type: Immutability, Unicode, and Performance
Understand the Python str type: immutable Unicode text, common methods, formatting, encoding, and performance tradeoffs for real-world code.
Python bool Type: Behavior, Truthiness, and Pitfalls
Understand Python's bool type: how it inherits from int, which values are truthy, and how to avoid common comparison and conversion mistakes.
Python Complex Type: Working with Complex Numbers
Learn how to create, manipulate, and convert Python's built-in complex type, including arithmetic, cmath functions, conversions, and common pitfalls.
Understanding Python's float Type and Its Precision Limits
python float type: Learn how Python's float type stores numbers, why precision errors occur, and how to handle them with proper comparisons, formatting, and alternatives.
Python int Type: Arbitrary Precision and Its Costs
Python's int type is arbitrary-precision, so arithmetic does not overflow like fixed-width C integers. Learn how large values affect memory and performance, plus conversion and serialization pitfalls.
Python Numeric Types: int, float, and complex Explained
python numeric types: Understand Python's built-in numeric types—int, float, and complex—including precision behavior, conversions, arithmetic rules, and common pitfalls.