Discover the answers you need at Westonci.ca, where experts provide clear and concise information on various topics. Get detailed and precise answers to your questions from a dedicated community of experts on our Q&A platform. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

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


Sagot :

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.