Vidyalelo
Python · Q33

MCQs on Python Tuples: Exam

Programming · Python · question 33

Q33

What will be the output of the following Python code? >>>t=(1,2,4,3) >>>t[1:-1]

A.
(1, 2)
B.
(1, 2, 4)
C.
(2, 4)
Answer
D.
(2, 4, 3)

Answer: Option C

Solution

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