SyntaxFix
Write A Post
Hire A Developer
Questions
To expand upon nosklo's explanation:
a = {} b = ['some', 'list'] a[b] = 'some' # this won't work a[tuple(b)] = 'some' # this will, same as a['some', 'list']