This is the code that I have:
def largest(arr,n): 
    max = arr[0] 
    for i in range(1, n): 
        if arr[i] > max: 
            max = arr[i] 
    return max
It gives me this error:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
What does this error mean and how can I solve it?