Question: ```
my_dict = {"fruits": ["apple", "orange", "grape", "maracuya", "pineapple"],
           "countries": [["India", "China", "Brazil", "Lesotho", "Nepal"], 
                         ["Spain", "Italy", "Japan", "Indonesia", "Russia"], 
                         ["Germany", "Austria", "Paraguay", "New Zealand", "Peru"],
                         ["Australia", "Colombia", "Belice", "Swaziland"]],
           "colors": [["blue", "black", "green", "yellow", "red"],
                      ["purple", "pink", "white", "lila"]]}

```

Is there a way to know how many lists I have under each key? for example: under the key "fruits" I just have one, under "countries" I have 4

what I've tried it was mostly:

```
for key, values in my_dict.items():
    print(len(values))

```

which didn't work

```
for key in my_dict.values():
   print(len(key))

```

also failed

Answer: 
My first question would be if you might want to put the list of fruits in another list too. Then the structure is the same for all your cases and the solution is simply:

```
{key: len(value) for key, value in my_dict.items()}

```

Otherwise, if you want to stick to that data structure you posted you can do:

```
{key: len(value) if isinstance(value[0], list) else 1 for key, value in my_dict.items()}

```

This would result in:

```
{'colors': 2, 'countries': 4, 'fruits': 1}

```

I must admit that there are quite some assumptions in this solution. If you want to find all lists in any place, that would make it more complicated.
Thanks a lot codingpoets, your answer was the most suitable one

Thanks also to all the rest of the people who read my problem and tried to help :-)