Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 23)
23.
How do you create a tuple with repeated elements?
new_tuple = (1, 2, 1, 2, 1, 2)
new_tuple = tuple(1, 2, 1, 2, 1, 2)
new_tuple = (1, 2) * 3
new_tuple = tuple.repeat(1, 2)
Answer: Option
Explanation:
Repeating elements can be done directly within the tuple.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.