Close

Python - Built In Data Structures

[Last Updated: Feb 5, 2022]

Python has a number of compound data type which are used to group multiple values together.

Followings are the those compound built-in data structures:

Data structure description Example
list
Ordered collection which can have duplicates
['one', 'two', 'three']
tuple
Immutable ordered collection (can have duplicates)
('one', 'two', 'three')
dict
A dictionary data structure (map) with unordered key-value pairing.
{'one': 1, 'two': 2, 'three': 3}
set
Unordered collection of unique values
{'one', 'two', 'three'}


In next tutorials we will see each collections in details.

See Also