Name: Anonymous 2009-05-25 12:32
def hanoi(height, frm, to, spare):
if height > 0:
hanoi(height-1, frm, spare, to)
print "Moving disk from", frm, "to", to
hanoi(height-1, spare, to, from)
def hanoi(height, frm, to, spare):
if height > 0:
hanoi(height-1, frm, spare, to)
print "Moving disk from", frm, "to", to
hanoi(height-1, spare, to, from)