In this chapter, we will cover Python lists, list functions, and list methods.
In the real world, we often make lists, such as daily to-do lists, a list of players of the Cricket team, a guest list for a wedding, lists of food, and so on.
Like tuple, a list is also a built-in data structure available in Python. It can contain heterogeneous values such as integers, floats, strings, tuples, lists, and dictionaries. However, Python lists are mutable; yes, they can change.
The following are the characteristics of a Python list:
- Values are ordered
- Mutable
- A list can hold any number of values
- A list can add, remove, and alter the values