List in python

This Python tutorial gives a information about list .

List

     List is an object which consist of a set of character of one type mostly but is capable of holding character of more than one type.


     Lists are of mutable type recall strings  which are immutable and hence impossible to change the content of strings however it is very easily possible to change the content of lists.


     The list(argument) is useful to convert a string or any other type of compound data type into list.



     List can be sliced which means the particular content of the list can be extracted and hence  are very useful.A List having its index as i[n,m] will display the characters in i starting from n ending at m-1 where n and m are the indices.


     Lists can be concatenated even if two lists are to be joined with the help of + symbol.
and many other built in methods which makes the user understand what lists are in a better way.

     Length function gives the number of character whatever compound type it may be.


     List can very easily have the characters inside them to be lists and are very useful for comparisons even sometimes.


     

     

Comments

Popular Posts