Skip to content

amrs-tech/nmaxmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nmaxmin

Build Status PyPI - License PyPI PyPI - Downloads Contributions

A simple package to find the nth max and nth min in a list.

Installation

pip install nmaxmin

How to use

Below example would help

from nmaxmin import nmaxmin
l = [1,2,3,4,5]
nmaxmin.maxn(l,2)	# returns 2nd max element from list
nmaxmin.minn(l,4)	# returns 4th minimum element from the list

Feel free to create issues, if you find any :)

Releases

No releases published

Packages

No packages published

Languages