I have a dictionary that has keys associated with lists.
mydict = {\'fruits\': [\'banana\', \'apple\', \'orange\'],
\'vegetables\': [\'pepper\', \'carr
mydict = {'fruits': ['banana', 'apple', 'orange'],
'vegetables': ['pepper', 'carrot'],
'cheese': ['swiss', 'cheddar', 'brie']}
item = "cheddar"
if item in mydict['cheese']:
print ("true")
this works, but you have to reference the keys in the dictionary like cheese, vegetables etc instead because of the way you made the dictionary, hope this helps!