data science labs
NumPypandasMatplotlibMachine LearningChallenges
UdemyLive cohorts
Starting up…
Challenges/NumPy/Exercise 1

Return the shape of cups

NumPy · from What an ndarray actually is

np.array.shape.ndim.dtype.itemsize.nbytes

Putting the kettle on…

Starting up…

Exercise 1

Return the shape of cups.

your answer
stuck? the lesson behind it
What an ndarray actually is
One type, one block of memory — and why everything else follows from that.
next challenge →
Build an array from [1, 2, 3] forced to float64, then return its dtype to prove…
data science labs — watch every operation, then write the code and have it checked.