Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

multiple choice you already know how to use lists. what is the index of…

Question

multiple choice
you already know how to use lists. what is the index of 5 in the following list?
2, 3, 5, 1, 6
3
2
1
4

Explanation:

Step1: Recall list index starts at 0

In Python - like languages, list indices start from 0.

Step2: Count position of 5

The first element 2 has index 0, the second element 3 has index 1, and the third element 5 has index 2.

Answer:

B. 2