<Apti
Code
/>
Back
Question 430: What happens when you try to modify a tuple?
tcs
wipro
infosys
general
aptitude
tuples
python-programming
Tuples are immutable in Python, and attempting to modify them raises aTypeError.
Raises aTypeError
Automatically converts it to a list.
Adds the new element to the end of the tuple.
Modifies the element at the specified index.
Submit Answer
Show Answer
Previous
Next