💻
Today I Learned
⌘
Ctrl
k
For the complete documentation index, see
llms.txt
. This page is also available as
Markdown
.
Copy
On this page
python
min and max of dict values
Copy
>>> vals={"a": 2, "b":3, "c": 4}
>>> min(vals, key=lambda x: vals[x])
'a'
Previous
double slash arithmetic operator
Next
python3 match case
Last updated
4 years ago