A list contains items separated by commas and enclosed within square brackets [].lists are almost similar to arrays in C. One difference is that all the items belonging to a list can be of different data type.
list = [123,'abcd',10.2,'d'] #can be a array of any data type or single data type.
li...