Discuss / Python / 作业打卡

作业打卡

Topic source

leisure_cat

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

  • 1

Reply