What is List
3
- A List can store the sequence of various types of data.
- A list is a container data type.Container is a an entity which contains multiple data items.It is also known as a collection.
- There are some container data types in python.
- List
- Tuple
- Set
- Dictionary
- Container data type are also known as compound data types.
- Lists are mutable in python.It means we can change the list element after it created.
- A list can be collection of Items with different data types(int,string,float etc.).
- A list can contain similar and dissimilar both data types.
- The items in the list are separated with comma(,) and enclosed with the square brackets [].