if len(L) < 1: return (None, None) else: s = [L[0],L[0]] for i in L: if s[0] >= i: s[0] = i if s[1] <= i: s[1] = i return (s[0],s[1])
Sign in to make a reply
leisure_cat