The data type list allows manipulation of its contents through various operations concatenation, repetition, membership and slicing.
Python allows us to join two or more lists using the concatenation operator depicted by the symbol ‘+’.
Lists l1 and l2 remain the same after the concatenation operation.
Python allows us to replicate a list using repetition operator depicted by symbol *.
The membership operator ‘in’ checks if the element is present in the list and returns True, else returns False.
Not in operator
The not in operator returns True if the element is not present in the list, else it returns False.
In Python, to access some part of a list , we use a method called slicing. This can be done by specifying an index range.
List[ Initial : End : IndexJump ]