Null Vector

easynumpy_basics

Implement 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.

⌘/Ctrl + ↵

Loading the Python runtime (first run only)…

Hints

Hint 1

np.zeros(n) builds a length-n vector of zeros.