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

Tell us what’s happening:

rods = {
‘A’: list(range(3,0,-1)),
‘B’: ,
‘C’:
}

Your code so far


# User Editable Region

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



# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko/20100101 Firefox/127.0

Challenge Information:

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

rods = {
    'A': [range(3,0,-1)],
    'B': [],
    'C': []
}

Don’t work too

use only range, nothing else for this step

ok thank you, it works.

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.