Array Data Structures in Python
How to implement arrays in Python using only built-in data types and classes from the standard library. Includes code examples and recommendations.
How to implement arrays in Python using only built-in data types and classes from the standard library. Includes code examples and recommendations.
Learn how to implement a linked list data structure in Python, using only built-in data types and functionality from the standard library.
How to implement records, structs, and “plain old data objects” in Python using only built-in data types and classes from the standard library.
How to implement a stack data structure (LIFO) in Python using built-in types and classes from the standard library.
How to implement a FIFO queue data structure in Python using only built-in data types and classes from the standard library.
How to implement mutable and immutable set and multiset (bag) data structures in Python using built-in data types and classes from the standard library.
Need a dictionary, map, or hash table to implement an algorithm in your Python program? Read on to see how the Python standard library can help you.
What are the various ways you can implement a priority queue in Python? Read on and find out what the Python standard library has to offer.
In this article series we’ll take a tour of some fundamental data structures and implementations of abstract data types (ADTs) available in Python’s standard library.
Array Data Structures in Python
Linked Lists in Python
Records, Structs, and Data Transfer Objects in Python
Stacks in Python
Queues in Python
Sets and Multisets in Python
Dictionaries, Maps, and Hash Tables in Python
Priority Queues in Python
Fundamental Data Structures in Python
Some of the best content I post is email only. Join over 18,144 other Python developers on my (free) weekly newsletter →
📰 Learn More »