summaryrefslogtreecommitdiff
path: root/progs/a595.py
blob: e4ede5ee2a9665b82be9c17ce91e99bdeebda8f2 (plain)
1
2
3
4
import heapq
def larg_nnum(list1,n):
 largest=heapq.nlargest(n,list1)
 return largest