On Friday, May 15, 2015 at 9:30:36 PM UTC-7, Phoenix wrote: > > > So (x,y) = ( [[1,2,3]] , 5) at the beginning of the loop. > > So x = [[1,2,3]] > So x.append ( [4,5,6] ) should change x to [[1,2,3],[4,5,6]] - right? > And y+1 = 6 > > And then one is just redifining b[0] to be ( [[1,2,3],[4,5,6]] , 6 ) >
Now confirm your expectations with what python actually does. (note that you're redefining b[0] in terms of what x.append *returns*, not using what it *does*) -- 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.
