# -*- coding: utf-8 -*- def findMinAndMax(L): if len(L) == 0: return (None, None) max = L[0] min = L[0] for item in L: if item > max: max = item if item < min: min = item return (min,max)
Sign in to make a reply
苍狼猎艳1016