Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 47)
47.
What is the result of the expression tuple((1, 2, 3)) * 3?
(1, 2, 3, 1, 2, 3, 1, 2, 3)
((1, 2, 3), (1, 2, 3), (1, 2, 3))
[1, 2, 3, 1, 2, 3, 1, 2, 3]
(1, 2, 3, (1, 2, 3), (1, 2, 3))
Answer: Option
Explanation:
The '*' operator is used to repeat the elements of the tuple.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.