๐ŸŒ
Python documentation
docs.python.org โ€บ 3 โ€บ tutorial โ€บ datastructures.html
5. Data Structures โ€” Python 3.14.3 documentation
We saw that lists and strings have many common properties, such as indexing and slicing operations. They are two examples of sequence data types (see Sequence Types โ€” list, tuple, range). Since Python is an evolving language, other sequence data types may be added.
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ python-data-structures
Python Data Structures - GeeksforGeeks
Data Structures are a way of organizing data so that it can be accessed more efficiently depending upon the situation. Data Structures are fundamentals of any programming language around which a program is built. Python helps to learn the fundamental of these data structures in a simpler way as compared to other programming languages.
Published ย  July 23, 2025
Discussions

Data Structures and Algorithms in Python
For the beginning https://github.com/shushrutsharma/Data-Structures-and-Algorithms-Python More on reddit.com
๐ŸŒ r/learnpython
30
64
February 28, 2025
What are data structures anyway?
A "data structure" is a way of organizing information (i.e.: collections of data) Real/Physical world examples: * A list where you add your friend's name and phone number and any other notes one by one as you get them. * A "Contacts" book where you add your friend's names but put them in the appropriate alphabetical section. * A "Rolodex" (or box of index cards) where each person get's their own card. * A grid of columns and rows you draw on graph paper where all names are in the same column, etc. Each of these is a different way to organize or structure the data. AKA: A different data structure. Each has advantages and disadvantages. * Some are easier to get started with (implement). Like the list. * Some are easier to find a name quickly (like the contact book) * Some are easier to add a new person in the middle (like the Rolodex/Index Cards) * Some take up more physical space and are harder to carry around (Like the Rolodex) You choose which to use based on your own criteria. Do you have a small number of people so a little list of 10 is fine? Do you have a large list of people (like 100) where a list would be unwieldly so you buy a little contacts book with alphabetic tabs on the side? Do you add and remove people frequently (like in a business) where a Rolodex is better? Do you need to take the numbers with you (like when you go on vacation) so a little book is better? Or do you only need the numbers when at your desk at work, where a big fat Rolodex is fine?? As far as the built in strings, integers, Booleans, etc.: Programmers generally call those data types, not data structures. Are they technically little data structures? Yeah, maybe. But it's not worth worrying about. Just call those data types and the bigger things data structures. More on reddit.com
๐ŸŒ r/learnpython
42
91
August 18, 2024
Whatโ€™s the best way to learn data structures using Python
Data Structures and Algos (DSA) is usually an early course (or set of courses) for an undergrad degree in CS. There aren't typically many prerequisites except: coding basics โ€“ e.g., you know about variables, functions, flow controls, etc. OOP basics โ€“ e.g., you know about classes, instances, inheritance, etc. Not knowing you, my suggestion would be: brush up on coding basics โ€“ Can you write a function from scratch? How about a small imperative program? if the DSA course uses OOP, brush up on OOP โ€“ย Can you write a class from scratch? How about small OOP program? keep engaging with your course, or another DSAcourse, until you get over the hump Good luck! More on reddit.com
๐ŸŒ r/learnprogramming
31
111
May 15, 2023
Best Python books for Data Structure and Algorithms (DSA) ?
Any good algorithm book will describe the algorithms in abstract terms, and not just in one particular language. Because after all, you can implement them in any language. I would recommend "Introduction to Algorithms" by CLRS (Cormen, Leierson, Rivest, Stein). The algorithms are described in pseudocode, not in any particular programming language. For example, their insertion sort is "implemented" as follows: for i = 2 to n key = A[i] // insert A[i] into the sorted subarry A[1:i - 1] j = i - 1 while j > 0 and A[j] > key A[j + 1] = A[j] j = j - 1 A[j + 1] = key You might notice that this already looks close to Python (and that their array indices are 1-based). IIRC Guido was inspired by how pseudocode looks (which is not standardized, just an ad hoc way to describe algorithms in a language neutral way); that's why there's the "Python is runnable pseudocode" memes, and stuff like this . Another popular book is "Algorithms" by Robert Sedgewick; I've never read it, but I assume the algorithms are also described in pseudocode. I've found a github repo where people implement the algorithms in Python. Of course there's also the holy bible TAOCP by Knuth, but that's more a reference for experienced people, as it is incredibly information dense and mathematical. Knuth himself said that "2 pages in my book is somebody's entire career work". More on reddit.com
๐ŸŒ r/learnpython
15
48
August 1, 2024
People also ask

When will I have access to the lectures and assignments?
To access the course materials, assignments and to earn a Certificate, you will need to purchase the Certificate experience when you enroll in a course. You can try a Free Trial instead, or apply for Financial Aid. The course may offer 'Full Course, No Certificate' instead. This option lets you see all course materials, submit required assessments, and get a final grade. This also means that you will not be able to purchase a Certificate experience.
๐ŸŒ
coursera.org
coursera.org โ€บ browse โ€บ computer science โ€บ software development
Python Data Structures | Coursera
What will I get if I subscribe to this Specialization?
When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile.
๐ŸŒ
coursera.org
coursera.org โ€บ browse โ€บ computer science โ€บ software development
Python Data Structures | Coursera
Is financial aid available?
Yes. In select learning programs, you can apply for financial aid or a scholarship if you canโ€™t afford the enrollment fee. If fin aid or scholarship is available for your learning program selection, youโ€™ll find a link to apply on the description page.
๐ŸŒ
coursera.org
coursera.org โ€บ browse โ€บ computer science โ€บ software development
Python Data Structures | Coursera
๐ŸŒ
Real Python
realpython.com โ€บ python-data-structures
Common Python Data Structures (Guide) โ€“ Real Python
October 21, 2023 - Data structures are the fundamental constructs around which you build your programs. Each data structure provides a particular way of organizing data so it can be accessed efficiently, depending on your use case.
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_dsa.asp
DSA with Python
Data Structures are a way of storing and organizing data in a computer. Python has built-in support for several data structures, such as lists, dictionaries, and sets.
๐ŸŒ
W3Schools
w3schools.com โ€บ python โ€บ python_datatypes.asp
Python Data Types
Python DSA Lists and Arrays Stacks Queues Linked Lists Hash Tables Trees Binary Trees Binary Search Trees AVL Trees Graphs Linear Search Binary Search Bubble Sort Selection Sort Insertion Sort Quick Sort Counting Sort Radix Sort Merge Sort ยท MySQL Get Started MySQL Create Database MySQL Create Table MySQL Insert MySQL Select MySQL Where MySQL Order By MySQL Delete MySQL Drop Table MySQL Update MySQL Limit MySQL Join
๐ŸŒ
Coursera
coursera.org โ€บ browse โ€บ computer science โ€บ software development
Python Data Structures | Coursera
August 20, 2020 - As we want to solve more complex problems in Python, we need more powerful variables. Up to now we have been using simple variables to store numbers or strings where we have a single value in a variable. Starting with lists we will store many values in a single variable using an indexing scheme to store, organize, and retrieve different values from within a single variable. We call these multi-valued variables "collections" or "data structures".
Rating: 4.9 โ€‹ - โ€‹ 97.2K votes
Find elsewhere
๐ŸŒ
Python documentation
docs.python.org โ€บ 3 โ€บ tutorial โ€บ index.html
The Python Tutorial โ€” Python 3.14.3 documentation
Python is an easy to learn, powerful programming language. It has efficient high-level data structures and a simple but effective approach to object-oriented programming. Pythonโ€™s elegant syntax an...
๐ŸŒ
Vagrant
ashki23.github.io โ€บ python-str.html
Python data structures
Dictionaries (also called dicts) are key data structure including a set of keys and values. Unlike sequences (e.g. lists and tuples) which are indexed by a range of numbers, dictionaries are indexed by unique and immutable keys. At the same time, values of the list could be any type (mutable or immutable) and duplicated.
๐ŸŒ
Anaconda
anaconda.com โ€บ home โ€บ blog โ€บ python data structures: types, use cases, and complexity
Python Data Structures: Types, Use Cases, and Complexity | Anaconda
December 11, 2025 - Data structures are organized formats for efficiently storing, accessing, and manipulating data in computer memory. In Python, they range from built-in types (like lists and dictionaries) to specialized implementations in libraries (like NumPy ...
๐ŸŒ
Real Python
realpython.com โ€บ learning-paths โ€บ basic-python-data-structures
Python Data Structures (Learning Path) โ€“ Real Python
Learn Python's built-in data structures: strings, lists, tuples, dictionaries, sets, and bytes, plus sorting, copying, and comprehensions.
๐ŸŒ
CodeChef
codechef.com โ€บ roadmap โ€บ python-dsa
Python DSA Roadmap โ€“ Learn Data Structures & Algorithms
Begin your Python coding journey with this step-by-step DSA roadmap. You'll start by mastering fundamentals like arrays, stacks, and recursion before advancing to trees, graphs, and dynamic programmingโ€”all in Python. With over 450 hands-on challenges, this roadmap ensures you reinforce key ...
๐ŸŒ
Reddit
reddit.com โ€บ r/learnpython โ€บ what are data structures anyway?
r/learnpython on Reddit: What are data structures anyway?
August 18, 2024 -

Let me try to frame my question. Self learner here.

For some reason I thought that string, integer, list, set, tuple and dictionary are data structures and every language has came up with its own data structures. I guess some languages have array and etc.

However, recently I've started a course on data structures and it teaches Linked List, Stack and Trees. None of them are implemented in Python out of box (as long as I understand). And yet if one asks ChatGPT if Python has Stack here is the answer: "Yes, Python provides several ways to implement a stack, even though it doesn't have a built-in stack data structure explicitly named "Stack." The most common ways to implement a stack in Python are:...". Turns out Python's list is a Stack where you can append() and pop() elements. On top of this "Python's collections module provides a deque (double-ended queue) that is optimized for fast appends and pops from both ends."

So I am confused now, and trying to make sence of all this info.

What is data structure, who came up with them and who defines them? Are they kind of protocols and programmers are agree on?

Top answer
1 of 21
126
A "data structure" is a way of organizing information (i.e.: collections of data) Real/Physical world examples: * A list where you add your friend's name and phone number and any other notes one by one as you get them. * A "Contacts" book where you add your friend's names but put them in the appropriate alphabetical section. * A "Rolodex" (or box of index cards) where each person get's their own card. * A grid of columns and rows you draw on graph paper where all names are in the same column, etc. Each of these is a different way to organize or structure the data. AKA: A different data structure. Each has advantages and disadvantages. * Some are easier to get started with (implement). Like the list. * Some are easier to find a name quickly (like the contact book) * Some are easier to add a new person in the middle (like the Rolodex/Index Cards) * Some take up more physical space and are harder to carry around (Like the Rolodex) You choose which to use based on your own criteria. Do you have a small number of people so a little list of 10 is fine? Do you have a large list of people (like 100) where a list would be unwieldly so you buy a little contacts book with alphabetic tabs on the side? Do you add and remove people frequently (like in a business) where a Rolodex is better? Do you need to take the numbers with you (like when you go on vacation) so a little book is better? Or do you only need the numbers when at your desk at work, where a big fat Rolodex is fine?? As far as the built in strings, integers, Booleans, etc.: Programmers generally call those data types, not data structures. Are they technically little data structures? Yeah, maybe. But it's not worth worrying about. Just call those data types and the bigger things data structures.
2 of 21
42
First rule of LLMs: never trust their output.
๐ŸŒ
Udemy
udemy.com โ€บ development
The Complete Data Structures and Algorithms Course in Python
February 3, 2026 - Explore a comprehensive curriculum from basics to advanced data structures and algorithms in Python, including recursion, Big O, arrays, lists, dictionaries, tuples, trees, graphs, and dynamic programming with coding exercises.
Rating: 4.5 โ€‹ - โ€‹ 11.2K votes
๐ŸŒ
DataCamp
datacamp.com โ€บ tutorial โ€บ data-structures-python
Python Data Structures with Primitive & Non-Primitive Examples | DataCamp
April 6, 2023 - Learn how to use Python Data Structures to store your data. Understand primitive and non-primitive data structures, such as strings, lists and stacks today!
๐ŸŒ
Codecademy
codecademy.com โ€บ article โ€บ python-data-structures
A Guide to Python Data Structures | Codecademy
In general, data structures are specialized formats used to store, organize, and retrieve data efficiently. Python, popular for its simplicity and readability, offers a variety of powerful data structures that help developers handle data in ...
๐ŸŒ
Dataquest
dataquest.io โ€บ blog โ€บ data-structures-in-python
Python Data Structures: Lists, Dictionaries, Sets, Tuples โ€“ Dataquest
May 12, 2025 - Mutable (from Latin mutabilis, "changeable") data structures are those which we can modify -- for example, by adding, removing, or changing their elements. Python has three mutable data structures: lists, dictionaries, and sets.
๐ŸŒ
Edureka
edureka.co โ€บ blog โ€บ data-structures-in-python
Data Structures in Python | List, Tuple, Dict, Sets, Stack, Queue
November 27, 2024 - These structures are called List, Dictionary, Tuple and Set. Python allows its users to create their own Data Structures enabling them to have full control over their functionality.