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

Tell us what’s happening:

my approach seams correct and when printing(rods) it outputs what i want but FCC doesn’t accept it. Why?

Your code so far


# User Editable Region

rods = {
    'A': [i for i in 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:126.0) Gecko/20100101 Firefox/126.0

Challenge Information:

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

add only the range function as value for A, not a list comprehension

1 Like

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