max_key_dict

yoda_powers.toolbox.max_key_dict(dico)[source]

Function return the key of max value in dico values()

Parameters

dico (dict) – a python dict

Returns

key of the dict

Return type

str

Example

>>> dico = {"A":0.5, "C":0.7, "T":0.01, "G":0.9}
>>> key_max = max_key_dict(dico)
>>> print(key_max)
G