Vidyalelo
Python · Q54

MCQs on Python Tuples: Exam

Programming · Python · question 54

Q54

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]
Answer
D.
(1, 4, 8)

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board