Question: ```
sweets = {'cadbury': [180,90], 'candy': [190],
          'milk chocolate': [150, 160], 'dark chocolate': [100],
          'white chocolate': [180], 'ice cream': [122]}

```

The dict sweets has different keys and list values pairs. I would like to get your help on finding the average of the numbers in the value list and return the key with the highest average value as output

Answer: 
You can use `statistics.mean` to compute the mean, and `max` with a custom key to get the key with a max mean:

```py
sweets = {'cadbury': [180,90], 'candy': [190], 'milk chocolate': [150, 160], 'dark chocolate': [100], 'white chocolate': [180],
 'ice cream': [122]}

from statistics import mean
max(sweets, key=lambda x: mean(sweets[x]))

```

Output:  `'candy'`
Using numpy you could try:

```
d = {x:np.mean(sweets[x]) for x in sweets}

```

Returning:

```
{'cadbury': 135.0,
 'candy': 190.0,
 'dark chocolate': 100.0,
 'ice cream': 122.0,
 'milk chocolate': 155.0,
 'white chocolate': 180.0}

```

And to get the key:

```
max(d, key=d.get)

```

Returning:

```
'candy'

```