What is wrong in the following code?
t = (1, 2, 3)
t.append(4)
t.remove(0)
t[0] = 1
Wrong in the code is as follows
Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> ================================ RESTART ================================
>>>
Traceback (most recent call last):
File "D:/test2", line 2, in <module>
t.append(4)
AttributeError: 'tuple' object has no attribute 'append'
>>>