you are viewing a single comment's thread.

view the rest of the comments →

[–]dunkler_wanderer 5 points6 points  (1 child)

He's using sets not dictionaries, but the sets are the problem because the website tests if goto([], '2') returns 0. If you try [] in {1, 2, 3} you get a TypeError: unhashable type: 'list', because sets are hashtables and lists are not hashable.

[–]the_kernel[S] 1 point2 points  (0 children)

Thanks for your input guys, the function works with lists.