Vidyalelo
Python · Q30

MCQs on Python Tuples: Exam

Programming · Python · question 30

Q30

What will the following code output:my_tuple = (1, 2, 3)new_tuple = my_tuple.copy()print(new_tuple)

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

Answer: Option A

Solution

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