import numpy as np # Write your function here def has_perfect_score(grades): return (grades[grades==100].size >0) # Uncomment to test x = np.array([75, 67, 95, 100]) print(x.size) print(has_perfect_score(x)) x = np.array([75, 67, 95, 99]) print(has_perfect_score(x))
What I expected to happen:
What actually happened:
Function `has_perfect_score` did not return a value with the expected type. We expected `bool_` but got `bool` instead.