Value error - week4

I am getting this error when i try to run the week 4 assignment exercise 1 :
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

Perhaps your code is computing a vector result, when it is expected to compute a scalar.