Discuss / Python / 111

pipi-hongwy

#1 Created at ... [Delete] [Delete and Lock User]

    if(len(L)==0):

       return(None,None)

    max=min=L[0]

    for a in L:

      if(a<min):

         min=a

      if(a>max):

         max=a

    return (min, max)


  • 1

Reply