Heapq Python library , max() and min() function helps us to find the N largest and N smallest elements in python. From this video, you can learn to fetch top 3 and bottom 3 values of List.
-----------------------------------------
Timestamps:
0:04 heapq
0:44 Get 3(N) maximum values from a list
1:36 Get 2(N) minimum values from a list
2:05 min() and max() function
2:33 Get 3(N) maximum values from a list
3:46 Get 2(N) minimum values from a list