Accessing list elements

The list elements could be accessed by specifying the index position of the list_name[i] element. For example, the zeroth list element of the random_list list could be accessed as follows:

    >>> random_list = [4, 6, 5, 7, 5, 2, 2, 5, 7, 8] 
>>> random_list[0]4>>> random_list[3]7
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset