def mymin(numlist): numnum = numlist[0] if len(numlist) > 0: for i in numlist: if i < numnum: numnum = i return numnum