def findMinAndMax(L:list): if L == []: return (None, None) L.sort() return L[0],L[-1]
Sign in to make a reply
白露