what is the difference between tuple and list?
danmcleran at yahoo.com
danmcleran at yahoo.com
Tue May 16 10:57:36 EDT 2006
Lists are mutable, i.e. one can do this:
a = [1,2,3]
a[0] = 100
You can't do that with a tuple.
a = (1,2,3)
a[0] = 100 # error
More information about the Python-list
mailing list