Explain the list manipulation in python with example ?
List Manipulation
886
06-Jul-2018
Updated on 07-Jul-2018
Prakash nidhi Verma
07-Jul-2018List manipulation in Python :
List is one of the simplest data structures in Python.Its very important and Lists are enclosed in square brackets [ ]. each item is separated by a comma.Every List item assign unique index no. A list is mutable, meaning you can change its contents. Lists have many built-in control functions.
Methods of List objects are:
Creation:
print L :
Accessing/Indexing :
Slicing:
Lengthof items in list :
Sorting the list :
Append to end of list: