Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python max function recursive

def Max(list):
    if len(list) == 1:
        return list[0]
    else:
        m = Max(list[1:])
        if m > list[0]:
            return m
        else:
            return list[0]
 
PREVIOUS NEXT
Tagged: #python #max #function #recursive
ADD COMMENT
Topic
Name
3+7 =