Discuss / Python / 交作业

交作业

Topic source

RaidriarF

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

     max=None

     min=None

     if len(L)!=0:

      max=0

      min=9999999

      for value in L:

        if value > max:

            max=value

        if value<min:

            min=value

     return (min,max)


  • 1

Reply