Python·100 questionsHow to quickly find minimum/maximum by key?SaveUpdated: 2026-08-31Answer•min(items, key=...).•max(items, key=...).•key can be lambda or attrgetter.•For dict: max(d, key=d.get).•More readable than manual loops.Ask AI to clarifyWas this answer helpful?HelpfulNot helpfulSuggest an improvement