I have a dictionary consisting of 4 keys with 3 values per key.
Looks like this:
d = {key1: (value1, value2, value), key2: (value1, value2, value), key3: (value1, value 2, value3)}
I want to print value1 from all of the keys. The way I have done it now is like this:
print (persons['1'][0])
print(persons['2'][0])
print (persons['3'][0])
print(persons['4'][0])
But I guess there is an easier way so that I can refer to all the keys in just one line? I also want to find the highest value2 in all the keys, and the average from value3 in all keys. Can someone please help me with this?