Discuss / Python / 作业

作业

Topic source

lyingaloneiii

#1 Created at ... [Delete] [Delete and Lock User]
if len(L)==0:
    return (None,None)
Min=L[0]
Max=L[0]
for n in L:
    if n>Max:
        Max=n
    if n<Min:
        Min=n
MaxMin_tumple=(Min,Max)
return MaxMin_tumple

  • 1

Reply