Add key= argument to heapq.nsmallest() and heapq.nlargest().
4 files changed