logo

Crowdly

Browser

Add to Chrome

What will be the output (return value) of the following function if the initial ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

What will be the output (return value) of the following function if the initial call is “recfun3([11, 44, 33, 22, 66, 77], 0)”?

def recfun3(L, x):

    if len(L) == 0:

        return x

    else:

        y = max(x, L[0])

        return recfun3(L[1:], y)
More questions like this

Want instant access to all verified answers on online.uom.lk?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome