575 results for “data structures”

Common Python Data Structures (Guide)

Aug 26, 2020 basicsdata-structurespython

In this tutorial, you'll learn about Python's data structures. You'll look at several implementations of abstract data types and learn which implementations are best for your specific use cases.


Prettify Your Data Structures With Pretty Print in Python

Dec 06, 2021 intermediatepython

The pprint module, Python's data pretty printer, is a useful part of the standard library. You can work with it for debugging data structures and increasing the readability of your output. In this tutorial, you'll find that pprint is both straightforward to use and also highly customizable.


Course: Stacks and Queues: Selecting the Ideal Data Structure

May 11, 2021 basicsdata-structures

In this course, you'll learn about three of Python's data structures: stacks, queue and priority queues. You'll look at multiple types and classes for all of these and learn which implementations are best for your specific use cases.


Course: Dictionaries and Arrays: Selecting the Ideal Data Structure

Feb 23, 2021 basicsdata-structurespython

In this course, you'll learn about two of Python's data structures: dictionaries and arrays. You'll look at multiple types and classes for both of these and learn which implementations are best for your specific use cases.


Course: Records and Sets: Selecting the Ideal Data Structure

Mar 23, 2021 basicsdata-structurespython

In this course, you'll learn about two of Python's data structures: records and sets. You'll look at multiple types and classes for both of these and learn which implementations are best for your specific use cases.


Functional Programming in Python › Mutable Data Structures: Lists and Dictionaries

Jul 02, 2019 advancedpython

Course lesson from: "Functional Programming in Python"


Functional Programming in Python › Danger Zone: Mixing Mutable and Immutable Data Structures

Jul 02, 2019 advancedpython

Course lesson from: "Functional Programming in Python"


Functional Programming in Python › Immutable Data Structures: namedtuple

Jul 02, 2019 advancedpython

Course lesson from: "Functional Programming in Python"


Functional Programming in Python › Immutable Data Structures: Tuples

Jul 02, 2019 advancedpython

Course lesson from: "Functional Programming in Python"


The Real Python Podcast – Episode #62: Selecting the Ideal Data Structure & Unravelling Python's "pass" and "with"

May 28, 2021

How do you know you're using the correct data structure for your Python project? There are so many built into Python and even more that are importable from the collections module. This week on the show, David Amos is back, and he's brought another…


Mastering Python's Built-in time Module › Python time in Data Structures

Jul 21, 2020 intermediate

Course lesson from: "Mastering Python's Built-in time Module"


Build a Quiz Application With Python

Feb 02, 2025 basicsprojects

In this step-by-step project, you'll build a Python quiz application for the terminal. Your app will ask you multiple-choice questions that you can use to strengthen your own knowledge or challenge your friends to test theirs.


Write Pythonic and Clean Code With namedtuple

May 12, 2021 intermediatedata-structurespython

In this step-by-step tutorial, you'll learn what Python's namedtuple is and how to use it in your code. You'll also learn about the main differences between named tuples and other data structures, such as dictionaries, data classes, and typed named tuples.


Stacks and Queues: Selecting the Ideal Data Structure › Stacks and Queues: Selecting the Ideal Data Structure (Overview)

May 11, 2021 basicsdata-structures

Course lesson from: "Stacks and Queues: Selecting the Ideal Data Structure"


Sorting a Python Dictionary: Values, Keys, and More

Dec 14, 2024 intermediatedata-structures

In this tutorial, you'll get the lowdown on sorting Python dictionaries. By the end, you'll be able to sort by key, value, or even nested attributes. But you won't stop there---you'll go on to measure the performance of variations when sorting and compare different key-value data structures.


Dictionaries and Arrays: Selecting the Ideal Data Structure › Dictionaries and Arrays: Selecting the Ideal Data Structure (Overview)

Feb 23, 2021 basicsdata-structurespython

Course lesson from: "Dictionaries and Arrays: Selecting the Ideal Data Structure"


Records and Sets: Selecting the Ideal Data Structure › Records and Sets: Selecting the Ideal Data Structure (Overview)

Mar 23, 2021 basicsdata-structurespython

Course lesson from: "Records and Sets: Selecting the Ideal Data Structure"


What's Lazy Evaluation in Python?

Apr 24, 2024 intermediatepython

This tutorial explores lazy evaluation in Python and looks at the advantages and disadvantages of using lazy and eager evaluation methods. By the end of this tutorial, you'll clearly understand which approach is best for you, depending on your needs.


The Python heapq Module: Using Heaps and Priority Queues

Jun 24, 2020 intermediatedata-structurespython

In this step-by-step tutorial, you'll explore the heap and priority queue data structures. You'll learn what kinds of problems heaps and priority queues are useful for and how you can use the Python heapq module to solve them.


Python's Array: Working With Numeric Data Efficiently

Jan 01, 2024 intermediatedata-structures

In this tutorial, you'll dive deep into working with numeric arrays in Python, an efficient tool for handling binary data. Along the way, you'll explore low-level data types exposed by the array module, emulate custom types, and even pass a Python array to C for high-performance processing.