75.7k views
1 vote
Question #2

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

User Jayrox
by
2.9k points

1 Answer

5 votes

Answer:

3

Step-by-step 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.

User Nateowami
by
3.0k points