how to add find the smallest int n in a list python

Solutions on MaxInterview for how to add find the smallest int n in a list python by the best coders in the world

showing results for - "how to add find the smallest int n in a list python"
Leo
19 Jul 2016
1def mymin(numlist):
2    numnum = numlist[0]
3    if len(numlist) > 0:
4        for i in numlist:
5            if i < numnum:
6                numnum = i
7    return numnum
similar questions