Examveda

What will be the output of the following Python code?
>>>t = (1, 2, 4, 3, 8, 9)
>>>[t[i] for i in range(0, len(t), 2)]

A. [2, 3, 9]

B. [1, 2, 4, 3, 8, 9]

C. [1, 4, 8]

D. (1, 4, 8)

Answer: Option C


This Question Belongs to Python Program >> Tuples In Python

Join The Discussion

Related Questions on Tuples in Python