Discuss / Python / LuCheng作业

LuCheng作业

Topic source

毛球的毛

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

  • 1

Reply