I have a dictionary where the values are a list of lists and I want to count the number of times a certain value shows up in the dictionary. I've tried something like this this:
d = { 'A': ['apple', 'banana', 'grape'],
'B': ['cherry', 'tomato', 'apple'],
'C': ['grape', 'kiwi', 'banana']
}
print(list(d.values()).count('apple'))
But when I try that I get zero back