Null Vector
easynumpy_basicsImplement null_vector(n).
Return a 1D array of n zeros (dtype float). No for/while loops.
Constraints
- no for/while loops
Your solution
Edit null_vector and run the real pytest suite in your browser — no install required. Your code is saved locally.
Loading the Python runtime (first run only)…
Hints
Hint 1
np.zeros(n) builds a length-n vector of zeros.