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

Tell us what’s happening:

Not understanding what to do to convert range to list?

Your code so far


# User Editable Region

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

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Mobile Safari/537.36

Challenge Information:

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

To convert the range to a list, you nest in a list function. list()

Ok but where? Inside the Rods section or are you talking about the last line of code?

work with the range that’s in the dictionary.