QUESTION IMAGE
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
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.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
B. 2