Sitemap
VJ

VJ

Exploring | Observing | Learning | Experimenting

Member-only story

Road to become a Python Ninja — Data Structures

Introduction to built-in collections in Python

7 min readJul 5, 2019

--

Press enter or click to view image in full size
Source: Udemy

There should be one-- and preferably only one --obvious way to do it. — The Zen of Python

Why choosing the right Data Structure is ‘extremely’ important?

Data Structures are specific ways of organizing data and storing data; so that they can be accessed and worked within an efficient way. Data Structures define the relationship between the data and the operations which can be performed on it.

Choice of a data structure depends on the problem we are solving and the kind of data we have. Inappropriate data structure can lead to unnecessarily long running times, memory leaks and waste of storage — which could translate to loss of a million dollars, a few days of time; when we talk about data on scale.

Data structures in Python

In this article we will talk about the most widely used data structures in python which will cover most of the use-cases we encounter -:

1. tuple

2. str

3. range

4. list

--

--

VJ
VJ

Written by VJ

Exploring | Observing | Learning | Experimenting