I wrote this for comparing two arrays and find #||≥|_| :
count = 0
for a in range(len(coeffs)):
for b in range(len(observed_coefficient)):
if np.abs(coeffs[a]) >= np.abs(observed_coefficient[b]):
count += 1
print(count)
However I get this error because of the if part. How can i fix this?