Discuss / Python / OK

AI__Al

#1 Created at ... [Delete] [Delete and Lock User]
if len(L)==0:    return (None,None)else:    xmin = L[0]    xmax = L[0]for x in L:    if x < xmin:        xmin = x    elif x > xmax:        xmax = x    else:        passreturn (xmin, xmax)

  • 1

Reply