Question #2
Multiple Choice
What is the index of 7 in this list?
[5, 6, 10, 7, 3, 2.5]
O7
04
02
03


Answer :

Answer:

3

Explanation:

Given set - [ 5, 6, 10, 7, 3, 2.5 ]

Index -          0, 1 , 2, 3,  4,   5

∴ we get

Index of element 7 is 3.

Reason -

The method index( ) returns the lowest index in the list where the element searched for appears.