Discuss / Python / 打卡

打卡

Topic source

TN

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

  • 1

Reply