Discuss / Python / 最简单办法

最简单办法

Topic source

白露

#1 Created at ... [Delete] [Delete and Lock User]
def findMinAndMax(L:list):    if L == []:        return (None, None)    L.sort()    return L[0],L[-1]

  • 1

Reply