I get “unhashable” error when I do the following:
a = {}
a["wer":"table.%%maker%%"]
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
a["wer":"table.%%maker%%"]
TypeError: unhashable type
“wer” key should have “table.%maker%” value here, but I can’t insert percentage signs. Wat should I do?
You can use % characters in dictionary keys, however you assign the value wrong.
You can use the notation with : like this:
Python has a great documentation which describes how to use data structures here.