Chapter 8 Overview: Core Data Types, Data Structures (of Data Types) and Utilities in Python

Python Data Types

Python’s built-in data types are broadly categorized into simple (primitive) types and complex (collection) types.

Simple Data Types

Complex (Collection) Data Types

Underlying Data Structures of Python Data Types

Understanding the underlying data structures helps to grasp how Python manages data efficiently under the hood.

Other simple types like int, float, bool, and str have specialized implementations optimized for performance and memory, but are not built on collection data structures.

Python Iterables

Iterables are objects capable of returning their elements one at a time, allowing you to loop over them using a for loop or other iteration contexts.

Python Utilities: Functions and More

Python provides many utilities to work with data structures and iterables effectively.