Lists in Python
Author -
Programmer Fect
January 05, 2020
Python List
List is collection of heterogeneous object where insertion order is preserved and duplicates are allowed.
It is mutable in nature and slicing and indexing also possible.
It is non primitive data type.
List is represented using [ ].
When to use a List.
Speed does not matters.
Insertion order to be preserved.
Duplicate objects.
Crud operations allowed |Create,Read,Update,Delete
Ways to create a List
ls = [ ] #Blank List
ls = list( ) #Blank List