Archives March 2016

Python list

Python list

a.Method for creating a list

     1.create list
     eg.
        >>> a=["python",25,89.9]
        >>> a
        ["python",25,89.9]
     2.list index   
     eg.
        >>> a=["python",25,89.9]
        >>> a[0]
        'python'
        >>> a[1]
        25
        >>> a[2]
        89.9
        >>> a[-1]
        89.9
        #get the index ...

Continue reading

Daily archives

Previous month

February 2016

Next month

May 2016

Archives