Discuss / Python / 交作业。20180509

交作业。20180509

Topic source

emilyhyj

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

def findMinAndMax02(x): maxVaue=f[0] minVaue=f[0] for v in x: if( v >= maxVaue): maxVaue =v elif (v< minVaue): minVaue =v xlist = [maxVaue,minVaue] xtuple=tuple(xlist) print(xtuple)

findMinAndMax02(f)


  • 1

Reply