Q:

Finding the max and min in dictionary as tuples python

so given this dictionary i'm trying to find the max value and min value 
{'Female' :[18,36,35,49,19],'Male' :[23,22,6,36,46]}

the output should be in tuples for example
key: (min,max)
Female: (18,49)
Male: (6,46)

A:

{key:(max(d[key]),min(d[key])) for key in d}

This will return 
{'Female': (49, 18), 'Male': (46, 6)}

