Array cells
Click a value to inspect index and dtype idea
NumPy stores values in contiguous arrays and applies math to whole arrays at once (vectorization).
A NumPy array is a block of numbers. Math applies to every cell at once.
A NumPy array is a typed grid of numbers. Instead of writing a for-loop over each value, you call one operation and NumPy does it for every cell — faster and shorter.
Scientific computing, machine learning features, image pixels as arrays, finance time series, and any heavy numeric workload in Python.
Answer all questions, then click Check answers. Use this before Practice in the editor.
Q1. NumPy’s core object is…
Q2. Elementwise means…
Q3. np.mean(a) computes…
Q4. Why use NumPy over pure Python lists for math?