I want to put list
s inside a dictionary
. I want do like this:
trail = {[]}
for i in states:
for j in states:
if(max_val < temp_V[j][i]):
max_val = temp_V[j][i]
trail[i].append(j)
But I am getting an error at trail = {[]}
. I'm new to Python. How can I do this?