Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

question # 2 multiple choice what is the next line? >>> mytuple = 10, 2…

Question

question # 2
multiple choice
what is the next line?

>> mytuple = 10, 20, 50, 20, 20, 60
>> mytuple.index(50)

3
2
1
4

Explanation:

Step1: Recall index - counting 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.

Answer:

B. 2