[Tutor] 2D list assignment
Shitiz Bansal
shitizb at yahoo.com
Fri Mar 12 09:55:47 EST 2004
Hi,
This is a sample python code:
a=((2,4),(4,2))
a[1][1]=4
Traceback (most recent call last):
File "<pyshell#2>", line 1, in -toplevel-
a[1][1]=4
TypeError: object doesn't support item assignment
Is it a bug or am i missing the point?
Shitiz
---------------------------------
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20040312/3a72e5f3/attachment.html
More information about the Tutor
mailing list