Find the output generated by following code fragments :
plane = ("Passengers", "Luggage") plane[1] = "Snakes"
10 Likes
TypeError: 'tuple' object does not support item assignment
Since tuples are immutable, tuple object does not support item assignment.
Answered By
3 Likes
Is the working of in operator and tuple.index( ) same ?
How are in operator and index( ) similar or different ?
(a, b, c) = (1, 2, 3)
(a, b, c, d) = (1, 2, 3)