python data structures the list is most versatile datatype available in pythonwhich can be written as list of comma-separated values (itemsbetween square brackets an important thing about the list is thatitems in list need not be of the same type creating list is as simple as putting different comma-separated values between square brackets for examplelist ['physics''chemistry' list [ list [" "" "" "" "similar to string indiceslist indices start at and lists can be slicedconcatenated and so on accessing values to access values in listsuse the square brackets for slicing along with the index or indices to obtain value available at that index for example#!/usr/bin/python list ['physics''chemistry' list [ print "list [ ]"list [ print "list [ : ]"list [ : when the above code is executedit produces the following resultlist [ ]physics list [ : ][ updating lists you can update single or multiple elements of listsby giving the slice on the left-hand side of the assignment operatorand you can add to elements in list with the append(method for example