List is a collection type in Python. It can contain any python object with sequential indexes and without worrying about duplicates.
Python List Properties
- List is a sequential collection.
- List may have duplicate values.
- List is mutable.
A list object in Python is denoted by  and it has values seperated by ,
>>> b = [1, "Hello"]
>>> c = [1, "Hello",]
>>> d = [
>>> e = [
>>> b == c == d == e
A list can easily be written over multiple lines. The command at the end of list is optional.
Python List Attributes
List has below built-in functions:
Python List Comprehension
List comprehension is a shortcut technique to create a new list object with just one-liner syntax, as below:
[expression for loop if condition]