Discuss / Python / 交作业

交作业

Topic source

right-chen

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

    if len(L)==0:

       return (None,None)

    min = L[0]

    max = L[0]

    for item in L:

        if item>max:

           max=item

        if item<min:

           min=item

    return (min,max)


  • 1

Reply