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

Error:can't assign to operator

2008-08-01 Thread Prasad, Mrunalini
Hello: I am getting the above error while tryign to run the tower of hanoi program. The error is at line 42 highligted in red below. PLease advise #!/usr/bin/env python class Hanoi: def __init__(self, N): self.N = N try: raise ValueError(N) except ValueError, e: