Discuss / Python / 作业

作业

Topic source

Roger_R36

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

    if len(L) != 0:

        min,max = L[0],L[0]

        for s in L:

            if s < min:

                min = s

            if s > max:

                max = s 

        return(min,max)

    else:

        return (None, None)


  • 1

Reply