Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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

def mymin(numlist):
    numnum = numlist[0]
    if len(numlist) > 0:
        for i in numlist:
            if i < numnum:
                numnum = i
    return numnum
 
PREVIOUS NEXT
Tagged: #add #find #smallest #int #list #python
ADD COMMENT
Topic
Name
2+5 =