Discuss / Python / 作业——打卡

作业——打卡

Topic source

沐__秋

#1 Created at ... [Delete] [Delete and Lock User]
def  findMinAndMax(L):
        Min = Max =None
        if  len(L) != 0:
               Min = Max = L[0]
               for v in L:
                      if v > Max:
                             Max = v
                      if v < Min:
                             Min = v
        return Min, Max

  • 1

Reply