标签: 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?