Consider the array of dictionaries below:
var dictionary_demo = [
[
{country: "georgia", value: sunny},
{country: "france", value: rainy}
],
[
{country: "georgia", value: sunny},
{country: "france", value: gloomy}
],
[
{country: "georgia", value: rainy},
{country: "france", value: dry}
]
]
I'm trying to find out how many times each weather condition occurs in each country. Here's the desired output:
In Georgia: Sunny occurs twice and Rainy occurs once.
In France: Rainy occurs once, Gloomy occurs once, and Dry occurs once.