Type Error:unhashable list


#1

I’m trying to make a little program with this code

basic_knife = {'name':'Basic Knife','damage':10,'uses':['crafting1','combat'],'durability':100,'id':'W-01'};
inventory = {'weapons':[basic_knife]}
print "Welcome to my survival game"
print """
You start in a cave"""
choices = {'explore':{'fork':['left','right']},'area':{['search','camp','hunt']}}
areas = {'cave':{'items':[rock,flint,mushrooms],'wildlife':[bear,bat]},'plains':{'items':[rock,fruit,stick],'wildlife':[lynx,elk,deer,moose]},'forest':{'items':[willow_branch,stick,rock,shrubbery,mushrooms,willow_branch]}}
current_area = areas['cave']

but it keeps saying type error: unhashable list please help


#2

Try removing the square brackets and just assign the variable.


#3

Thanks I just did a dumb