Learn Recursion by Solving the Tower of Hanoi Puzzle - Step 12

Tell us what’s happening:

I’m stuck because of site errors on step 12, Scientific computing with python, Tower of Hanoi Puzzle: there is a site error that does not recognize the move function!
Is there a way to overcome this site bug?

Your code so far

NUMBER_OF_DISKS = 3
number_of_moves = 2**NUMBER_OF_DISKS - 1
rods = {
    'A': list(range(NUMBER_OF_DISKS, 0, move()-1)),
    'B': [],
    'C': []
}

def move():
    print(rods)

# User Editable Region

move()

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0

Challenge Information:

Learn Recursion by Solving the Tower of Hanoi Puzzle - Step 12

what site error are you getting?

Do you mean this?

Traceback (most recent call last):
  File "main.py", line 4, in <module>
NameError: name 'move' is not defined

check on line 4, you can’t use a function before defining it

don’t understand! the site is not responding!

look carefully at your line 4, you are using the move function in there, which is a syntax error because the function is declared later

you can reset the step

OK, don’t know how it was put there!