I have a list of dictionaries, for which I have extracted two values from each dictionary, and divided by each other to create a new item. I would like to find the mode and median of these new items. There are quite a few of them, so I don't want to type each new item in to form the list.

```
from statistics import median
from statistics import mean
for stats in body_stats:
    size = [stats['weight']/stats['height']]
median_size = median(size) 
mode_size = mode(size)
print(mode_size, median_size)

```

This code appears to print the last calculation made, rather than working out what the mode/median are. I'm assuming this result is due to the new calculations not being part of one whole list. They are printed as a series of lists for each value. 

How would I get them to form a list without typing each calculation individually? 

Is there another way to find out the statistical calculations from the calculations I created?

Thank you for your help!