Visit: https://a2zcareers.viden.io
There are four collection data types in the Python programming language:
When choosing a collection type, it is useful to understand the properties of that type. Choosing the right type for a particular data set could mean retention of meaning, and, it could mean an increase in efficiency or security.
A list is a collection which is ordered and changeable. In Python lists are written with square brackets.
Create a List:
thislist = ["apple", "banana", "cherry"]
print(thislist)