In any language, data structures are used to store and manipulate complex data. In Python, data structures are storage containers to manage, organize, and search 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, there are five various data structures that can be used to store collections:
Lists: Ordered mutable sequences of elements
Tuples: Ordered immutable sequences of elements
Sets: Unordered bags of elements
Dictionary: Unordered bags of key-value pairs
Data frames: Two-dimensional structures to store two-dimensional data
Let's look into them in more detail in the upcoming subsections.