Tuples

Tuvas tuvas21 at gmail.com
Thu Dec 15 18:19:37 CET 2005


Let's say I make a program something like follows:

x=[]
x.append([1,2,3])
x.append([4,5,6])
print x
print x[0]
print x[0][1]
x[0][1]=5

Okay, everything works here as expected except the last line. Why won't
this work? Thanks for the help!




More information about the Python-list mailing list