QUESTION IMAGE
Question
what is the next line?
>> tuplec = (3, 8, 11, 8, 8, 11)
>> tuplec.index(11)
o 2
o 3
o 0
o 1
Step1: Understand index method
The index() method in Python for tuples returns the index of the first occurrence of the specified element.
Step2: Check tuple elements
In tupleC=(3, 8, 11, 8, 8, 11), the first occurrence of 11 is at index 2 (since indexing starts at 0).
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
2