Discuss / Python / 交作业

交作业

Topic source

壮士别跑

#1 Created at ... [Delete] [Delete and Lock User]
def findMinAndMax(L):
    max=min=None
    for n in L:
       if min==None or min>n:
          min=n
       if max==None or max<n:
          max=n
    return (min,max)

  • 1

Reply