Re: Error:can't assign to operator

2008-08-03 Thread Emile van Sebille
Dennis Lee Bieber wrote: just an fyi self.towers = [ list(reversed(range(self.numDisks))), or range(self.numDisks-1,-1,-1) Emile -- http://mail.python.org/mailman/listinfo/python-list

Re: Error:can't assign to operator

2008-08-01 Thread MRAB
On Aug 1, 9:50 pm, Emile van Sebille <[EMAIL PROTECTED]> wrote: > Prasad, Mrunalini wrote: > >         dest + j - 1 = source + i > > Well, what are you trying to do here? > >  >>> a,b,c = range(3) >  >>>a+b-1=c+1 > SyntaxError:can't assign to operator > > Emile Just a comment, but I thought the pr

Re: Error:can't assign to operator

2008-08-01 Thread Emile van Sebille
Prasad, Mrunalini wrote: dest + j - 1 = source + i Well, what are you trying to do here? >>> a,b,c = range(3) >>>a+b-1=c+1 SyntaxError:can't assign to operator Emile -- http://mail.python.org/mailman/listinfo/python-list