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

Tell us what’s happening:

Well, I did what I was supposed to do and it even printed the result correctly, but it still says that I should pass my ‘A’ key to the type() function

Your code so far


# User Editable Region

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

# User Editable Region

Your browser information:

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

Challenge Information:

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

Welcome @Humble_Bumble to FCC community

this is wrong syntax

dicitonaryvaiable[key]

replace dictinoaryvariable with rods and key with A inside '' quotes. use [] brackets not common brackets and remove get

1 Like

Yea thanks it worked

1 Like

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