> For the complete documentation index, see [llms.txt](https://til.yulrizka.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://til.yulrizka.com/python/min-and-max-of-dict-values.md).

# min and max of dict values

```
>>> vals={"a": 2, "b":3, "c": 4}

>>> min(vals, key=lambda x: vals[x])
'a'
```
