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

Tell us what’s happening:

I have the numbers listed but code won’t pass.

Your code so far


# User Editable Region

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

# User Editable Region

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36

Challenge Information:

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

The request says:

Pass your range() call to the list() function to do that.

Which means to give range() as an argument to the list() function.

There’s no asking to modify the print()

You did not update the call to range here.

list(range) or list(range[‘A’])) I can’t understand why this won’t work

You do not need to change the arguments that you have in range(), currently. Just surround all that as the argument for list()

Got it. I was adding another line instead of editing the original range call.