My final answer matches the expected value but I got assertion error…Does anyone know why?
AssertionError Traceback (most recent call last)
in
10 assert type(a) == np.ndarray, “Output must be a np.ndarray”
11 assert a.shape == (10, 10), f"Wrong shape {a.shape} != (10, 10)"
—> 12 assert np.sum(a) == 100, “Values must sum to 100”
13
14 print("\033[92m All tests passed.")
AssertionError: Values must sum to 100