Professional Documents
Culture Documents
ICA-E - 1 - Portfolio 4 Lists
ICA-E - 1 - Portfolio 4 Lists
ICA-E - 1 - Portfolio 4 Lists
TECHNOLOGIES
List is a combination of values stored at one place and the values are
stored according to the capacity of the list. First we set the size of the list
List and then enter the values in the list.
List indices are the number of values space in the list if the total size is 10
then the number of indices will be 9.
List indices
Print Mylist[1]
First index value is the head of the list from where the list has been
started.
List head
Print Mylist[0]
Last index value is the head of the list from where the list has been ended.
List tail
Print Mylist[9]
List type defends upon the values need to be store in the list it can be in
different types int, float and string etc.
check list type
If isinstance(obj,list)
If we have to delete any element of the list from the values of the list we
remove can do it by giving the index of the cell.
method
List.remove[20]