QUESTION IMAGE
Question
question # 2
multiple choice
what is the next line?
>> mytuple = 10, 20, 50, 20, 20, 60
>> mytuple.index(50)
3
2
1
4
Step1: Recall list index rule
In Python, list indices start from 0.
Step2: Find index of 50
In the list [10, 20, 50, 20, 20, 60], the first element 10 has index 0, the second element 20 has index 1, and the third element 50 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