Python Programming - Tuples - Discussion

Discussion Forum : Tuples - General Questions (Q.No. 4)
4.
What happens when you try to modify a tuple?
Raises a TypeError
Automatically converts it to a list.
Adds the new element to the end of the tuple.
Modifies the element at the specified index.
Answer: Option
Explanation:
Tuples are immutable in Python, and attempting to modify them raises a TypeError.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.