Exploring Python built-in data types
In any language, data structures are used to store and manipulate complex data. In Python, data structures are storage containers for managing, organizing, and searching data in an efficient way. They are used to store a group of data elements called collections that need to be stored and processed together. In Python, the important data structures that can be used to store collections are summarized in Table 2.1:
Data Structure |
Brief Explanation |
Example |
List |
An ordered, possibly nested, mutable sequence of elements |
|
Tuple |
An ordered immutable sequence of elements |
...