Discuss / Python / 作业

作业

Topic source

凌零An233

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

def findMinAndMax(L):

min = max = L[0]

for x in L:

if max < x:

max = x

for y in L:

if min > y:

min = y

return (max,min)


  • 1

Reply