I have a dictionary that looks like:
G={\'E\': 18.0, \'D\': 17.0, \'C\': 19.0, \'B\': 15.0, \'A\': 0}
I have to find the mean of the values
Suppose you have a dictionary with multiple keys, each having a list of values:
your_averaged_dictionary = {key: np.mean(values) for key, values in your_dictionary}