I need to make a two dimensional dictionary in python. e.g. new_dic[1][2] = 5
new_dic[1][2] = 5
When I make new_dic = {}, and try to insert values, I get a <
new_dic = {}
One simple way is to just use tuples as keys to a regular dictionary. So your example becomes this:
new_dic[(1, 2)] = 5
The downside is that all usages have to be with this slightly awkward convention, but if that's OK, this is all you need.