Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 15)
15.
What happens if you try to concatenate two tuples using the '+' operator?
Raises a TypeError
Merges the tuples into a single tuple.
Creates a list containing both tuples.
Concatenates the tuples into a new tuple.
Answer: Option
Explanation:
The '+' operator concatenates tuples, creating a new tuple with elements from both tuples.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.