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
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
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
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: