Python šŸ Data Structures

Brett Cole
7 min readFeb 14, 2020

There are plenty of data structures in the wild. With some languages having many. While other languages needing us to build some from scratch. So why are there so many data structures out there?

A data structure is a data organization, management, and storage format that enables efficient access and modification.

Looks like it all comes down to organizing and storing data in a way that increases efficiency while speeding up access time. But this article isnā€™t a deep dive into why we need data structures or how they are saved into memory.

This time we will be covering Python and itā€™s built in data structures. This article will be at a pretty quick pace. Python has four distinct built in data structures. We have a List, Tuple, Dictionary and Sets. So letā€™s see how {}, () and [] fit in with these.

List Data Structure

First up are Lists. A list is a collection of items or elements inside of []. Those items can be anything you desire. You can includeā€¦

--

--