I had imagined that at the end one would get, 

b = [  ( [ [1,2,3], [4,5,6]  ]  , 6)  ]

On Friday, May 15, 2015 at 11:07:13 PM UTC-5, Phoenix wrote:
>
> What is wrong with this code? 
>
> b = []
> a = [1,2,3]
> b.append( ([a],5))
> for (x,y) in b
>    b[0] = (x.append([4,5,6]),y+1)
>
> show(b)
>
>
> '''
> I am trying to see if I can create a list of tuples such that the first 
> coordinate of eachh tuple is itself a list of lists. 
> Then inside the loop I am trying to update a tuple such that I will add a 
> new list to its first coordinate and change its other coordinate. 
> '''
>  
>
>
>
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to