Find Max in List Using Reduce Function

时间:2016-10-15 17:08:57

标签: python python-3.x

def max_in_list(list):
    for value in list:
        reduce(maxof, list)
    print(list)

This program returns "reduce is not defined" Can anyone explain the reduce function for me?

0 个答案:

没有答案