Respuesta :

Answer:

786

Explanation:

In Python, and of course many other programming languages, lists are one of the built-in data types used to store several items in a variable.

In creating a list, the items, which may be of different types (e.g integer, float, string e.t.c), are placed in a square bracket and each item is separated from the other by a comma. The following are an example of a list.

myList = ["fish", "meat", 5, 8, "egg"]

scores = [10, 34, 78, 90]

To access or retrieve an item in a list, the index of that item is used. Indexes start from 0. For example, in myList the first item (which is fish) has an index of  0. The second item (which is meat) has an index of 1 and so on. In scores, the first item (which is 10) has an index of 0, 34 has an index of 1, 78 has an index of 2 and so on.

Now;

i. to access the first item in myList, we simply write: myList[0]. This will give fish

ii. to access the third element in scores, we simply write: scores[2]. This will give 78

From the list given in the question which is:

list1 =  [ 'cyber', 786 , 2.23, 'square', 70.2 ]

print(list1[1]) will print the item at index 1 which is 786.

Therefore, the output of the code is 786

ACCESS MORE
EDU ACCESS