I am a total beginner on python and wondering if this is possible?
businessideas = {
"DeliDelivery": ['bread'],
"Ikea": ['sofa','table'],
'Volvo': ['car','window'],
'saab' : ['window']
}
carkeywords = ['car', 'engine']
furniturekeywords = ['sofa', 'bookshell']
bakerykeywords = ['bread', 'flour', 'cookies']
carkeywords_competitors = []
furniturekeywords_competitors = []
bakerykeywords_competitors = []
I want to create a function that puts every dictionary-key in a competitors list if they have a common value. So for an example the key Ikea has the elements sofa and table. Then the function should see that the value sofa is a duplicate to of furniturekeywords elements. Then the funtion should put the key Ikea in the list furniturekeywords_competitors. If it would have the same value as carkeywords the function would have put the key in carkeywords_competitors.