Open In App

Python-Quizzes | Python Tuples Quiz | Question 4

Question 4: What is the output of the following program?




tuple = (1, 2, 3
print(2 * tuple

(A) (1, 2, 3, 1, 2, 3)
(B) (1, 2, 3, 4, 5, 6)
(C) (3, 6, 9)

(D) Error

Answer: (A)
Explanation: The ‘*’ operator is used to concatenate tuples.
Quiz of this Question
Please comment below if you find anything wrong in the above post

Article Tags :