Discuss / Python / try this

try this

Topic source

施谷草

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

  if L == []:

    return (None, None)

  min=L[0]

  max=L[0]

  for x in L:

    if x > max:

      max = x

    if x < min:

      min = x

  return (min, max)


  • 1

Reply