In this article, you will get python data structures overview. Python data structures is arranging abstract data types to increase their accessibility and efficiency. Python comes with basic data types such as integer, float and abstract data types like list, dictionaries, set and so on
Almost everything can be done using python basic data types
, which are converted into 1s and 0s. However, complex problems cannot be solved using basic types. Therefore, we can create abstract types
using these basic types to solve particular problems.
For example, we can use strings and numbers to create a python list or dictionaries.
List Like Structures
Python support list and list-like data structures where you can store list of values of different types under one variable name.
If you want to access an element from list then use an Index
value.
Python Data Structures Overview
In this section, we will discuss about all the data structures available with python language. Also, you learn some advanced computer science concepts in this section. Here is a list of data structures and concepts that you will learn.
Python Concepts
You will learn some important concepts such as passing-by-reference vs. passing-by-value, mutability, mutable variables vs. immutable variables, and basics of python methods.
Basic Data Types
String – A data types that holds a string of characters accessible through index value.
List – A data type that holds multiple individual data values call under one variable name. It is very similar to concept of array in other programming languages such as C/C++, Java, etc/
Dictionary – A data type that use to store data as key/value pairs. You must enter the key value access the data from a dictionary.