Tuples
bruno at modulix
onurb at xiludom.gro
Thu Dec 15 13:45:16 EST 2005
Tuvas wrote:
> 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
Where are the tuples ?
> Okay, everything works here as expected except the last line. Why won't
> this work?
Because you forgot to pay the salary ?-)
"don't work" is probably the worst description of a problem. Please take
time to explain what you expect and what you actually get.
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'onurb at xiludom.gro'.split('@')])"
More information about the Python-list
mailing list